mirror of
https://github.com/lordmathis/lemma.git
synced 2025-12-24 18:44:21 +00:00
Migrate all modals to ts
This commit is contained in:
@@ -8,8 +8,18 @@ import {
|
||||
Button,
|
||||
} from '@mantine/core';
|
||||
|
||||
const DeleteAccountModal = ({ opened, onClose, onConfirm }) => {
|
||||
const [password, setPassword] = useState('');
|
||||
interface DeleteAccountModalProps {
|
||||
opened: boolean;
|
||||
onClose: () => void;
|
||||
onConfirm: (password: string) => Promise<void>;
|
||||
}
|
||||
|
||||
const DeleteAccountModal: React.FC<DeleteAccountModalProps> = ({
|
||||
opened,
|
||||
onClose,
|
||||
onConfirm,
|
||||
}) => {
|
||||
const [password, setPassword] = useState<string>('');
|
||||
|
||||
return (
|
||||
<Modal
|
||||
@@ -8,8 +8,20 @@ import {
|
||||
PasswordInput,
|
||||
} from '@mantine/core';
|
||||
|
||||
const EmailPasswordModal = ({ opened, onClose, onConfirm, email }) => {
|
||||
const [password, setPassword] = useState('');
|
||||
interface EmailPasswordModalProps {
|
||||
opened: boolean;
|
||||
onClose: () => void;
|
||||
onConfirm: (password: string) => Promise<void>;
|
||||
email: string;
|
||||
}
|
||||
|
||||
const EmailPasswordModal: React.FC<EmailPasswordModalProps> = ({
|
||||
opened,
|
||||
onClose,
|
||||
onConfirm,
|
||||
email,
|
||||
}) => {
|
||||
const [password, setPassword] = useState<string>('');
|
||||
|
||||
return (
|
||||
<Modal
|
||||
Reference in New Issue
Block a user