update modals to use pushmodal

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-04-04 23:18:57 +02:00
parent 30ffcb51c2
commit eb12f728d1
16 changed files with 19 additions and 220 deletions

View File

@@ -1,17 +1,15 @@
'use client';
import { ButtonContainer } from '@/components/button-container';
import { Button } from '@/components/ui/button';
import { popModal } from '.';
import { ModalContent, ModalHeader } from './Modal/Container';
export interface ConfirmProps {
export type ConfirmProps = {
title: string;
text: string;
onConfirm: () => void;
onCancel?: () => void;
}
};
export default function Confirm({
title,