From 187df97590191a9c83bf31ef28a5657be256597b Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sun, 17 Jan 2021 18:25:13 -0800 Subject: [PATCH] Add UI for restoring backup checkpoint text --- .../components/elements/ConfirmationModal.tsx | 7 ++-- .../server/backups/BackupContextMenu.tsx | 37 ++++++++++++++++++- routes/api-client.php | 1 + 3 files changed, 41 insertions(+), 4 deletions(-) diff --git a/resources/scripts/components/elements/ConfirmationModal.tsx b/resources/scripts/components/elements/ConfirmationModal.tsx index 7233731f5..faff242a5 100644 --- a/resources/scripts/components/elements/ConfirmationModal.tsx +++ b/resources/scripts/components/elements/ConfirmationModal.tsx @@ -7,18 +7,19 @@ import ModalContext from '@/context/ModalContext'; type Props = { title: string; buttonText: string; - children: string; onConfirmed: () => void; showSpinnerOverlay?: boolean; }; -const ConfirmationModal = ({ title, children, buttonText, onConfirmed }: Props) => { +const ConfirmationModal: React.FC = ({ title, children, buttonText, onConfirmed }) => { const { dismiss } = useContext(ModalContext); return ( <>

{title}

-

{children}

+
+ {children} +