[Glitch] Allow removing yourself from a collection
Port 3a796544e3 to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
1 parent
4bcd0caa79
commit
e616200e59
10 files changed
+254
-36
No files matched your search
+2
-2
@@ -29,7 +29,7 @@ interface ConfirmationModalProps {
|
||||
cancel?: React.ReactNode;
|
||||
secondary?: React.ReactNode;
|
||||
onSecondary?: () => void;
|
||||
onConfirm: () => void;
|
||||
onConfirm: () => void | Promise<void>;
|
||||
noCloseOnConfirm?: boolean;
|
||||
extraContent?: React.ReactNode;
|
||||
children?: React.ReactNode;
|
||||
@@ -64,7 +64,7 @@ export const ConfirmationModal: React.FC<
|
||||
onClose();
|
||||
}
|
||||
|
||||
onConfirm();
|
||||
void onConfirm();
|
||||
}, [onClose, onConfirm, noCloseOnConfirm]);
|
||||
|
||||
const handleSecondary = useCallback(() => {
|
||||
|
||||
Reference in new issue
Block a user