feat: mock login

This commit is contained in:
DiamondThree
2023-01-05 17:32:39 +08:00
parent 4dc61165b2
commit 3d2da085e7
7 changed files with 95 additions and 29 deletions

View File

@@ -11,6 +11,7 @@ export type ConfirmProps = {
title?: string;
content?: string;
confirmText?: string;
cancelText?: string;
// TODO: Confirm button's color should depend on confirm type
confirmType?: 'primary' | 'warning' | 'danger';
onConfirm?: () => void;
@@ -24,6 +25,7 @@ export const Confirm = ({
confirmType,
onConfirm,
onCancel,
cancelText = 'Cancel',
}: ConfirmProps) => {
const [open, setOpen] = useState(true);
return (
@@ -48,7 +50,7 @@ export const Confirm = ({
}}
style={{ marginRight: '24px' }}
>
Cancel
{cancelText}
</Button>
<Button
type={confirmType}