diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2024-10-22 12:23:35 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2024-10-22 12:23:35 +0300 |
| commit | 3ee18a8cb3a2893f552275c35b0724daf4b8ab69 (patch) | |
| tree | d9003e0cc2c0a1dcbcda5b6eec247776a8e2f340 /frontend/src/hooks/UseConfirm.tsx | |
| parent | backend: importance of || and && (diff) | |
| download | lphub-3ee18a8cb3a2893f552275c35b0724daf4b8ab69.tar.gz lphub-3ee18a8cb3a2893f552275c35b0724daf4b8ab69.tar.bz2 lphub-3ee18a8cb3a2893f552275c35b0724daf4b8ab69.zip | |
frontend: await message
Diffstat (limited to 'frontend/src/hooks/UseConfirm.tsx')
| -rw-r--r-- | frontend/src/hooks/UseConfirm.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/src/hooks/UseConfirm.tsx b/frontend/src/hooks/UseConfirm.tsx index 80a0d51..9a7853b 100644 --- a/frontend/src/hooks/UseConfirm.tsx +++ b/frontend/src/hooks/UseConfirm.tsx | |||
| @@ -3,9 +3,9 @@ import ConfirmDialog from '../components/ConfirmDialog'; | |||
| 3 | 3 | ||
| 4 | const useConfirm = () => { | 4 | const useConfirm = () => { |
| 5 | const [isOpen, setIsOpen] = useState(false); | 5 | const [isOpen, setIsOpen] = useState(false); |
| 6 | const [resolvePromise, setResolvePromise] = useState<((value: boolean) => void) | null>(null); | ||
| 7 | const [title, setTitle] = useState<string>(""); | 6 | const [title, setTitle] = useState<string>(""); |
| 8 | const [subtitle, setSubtitle] = useState<string>(""); | 7 | const [subtitle, setSubtitle] = useState<string>(""); |
| 8 | const [resolvePromise, setResolvePromise] = useState<((value: boolean) => void) | null>(null); | ||
| 9 | 9 | ||
| 10 | const confirm = ( titleN: string, subtitleN: string ) => { | 10 | const confirm = ( titleN: string, subtitleN: string ) => { |
| 11 | setIsOpen(true); | 11 | setIsOpen(true); |