perf: init db and config

This commit is contained in:
archer
2023-07-27 09:33:56 +08:00
parent aa7fb6a65c
commit 97c7984dd1
7 changed files with 74 additions and 19 deletions

View File

@@ -32,7 +32,12 @@ export const useConfirm = (props: { title?: string; content: string }) => {
),
ConfirmModal: useCallback(
() => (
<AlertDialog isOpen={isOpen} leastDestructiveRef={cancelRef} onClose={onClose}>
<AlertDialog
isOpen={isOpen}
leastDestructiveRef={cancelRef}
autoFocus={false}
onClose={onClose}
>
<AlertDialogOverlay>
<AlertDialogContent maxW={'min(90vw,400px)'}>
<AlertDialogHeader fontSize="lg" fontWeight="bold">