diff options
| author | Wolfboy248 <georgejvindkarlsen@gmail.com> | 2024-10-28 11:43:38 +0100 |
|---|---|---|
| committer | Wolfboy248 <georgejvindkarlsen@gmail.com> | 2024-10-28 11:43:38 +0100 |
| commit | 6fdc20a4db98531545badedf983a81a05f0ea450 (patch) | |
| tree | 69d314fd8fad33cc12c676617b5bc1c6ff066cce /frontend/src/hooks/UseConfirm.tsx | |
| parent | refactor: uploadrundialog (diff) | |
| parent | backend: fix user completion count (diff) | |
| download | lphub-6fdc20a4db98531545badedf983a81a05f0ea450.tar.gz lphub-6fdc20a4db98531545badedf983a81a05f0ea450.tar.bz2 lphub-6fdc20a4db98531545badedf983a81a05f0ea450.zip | |
Merge branch 'typescript' of https://github.com/pektezol/LeastPortalsHub into typescript
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); |