Skip to content

Commit caf2945

Browse files
committed
chore: set ConfirmModal description field as React Node
1 parent 631f8f8 commit caf2945

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

src/client/components/ConfirmModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
interface IModalProps {
22
dialogRef: React.RefObject<HTMLDialogElement | null>;
33
title: string;
4-
description: string;
4+
description: React.ReactNode;
55
onConfirm: () => void;
66
}
77

src/client/layout/Header.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,13 @@ const Navbar: React.FC = () => {
5858
<ConfirmModal
5959
dialogRef={resetCtfDialogRef}
6060
title="Reset CTF"
61-
description="This will reset the CTF to its original status (usually it will perform some cleanup and uninstall/reinstall the app. Are you sure?"
61+
description={
62+
<>
63+
This will reset the CTF to its original status (usually it will perform some cleanup and uninstall/reinstall
64+
the app). <br />
65+
Are you sure?
66+
</>
67+
}
6268
onConfirm={reset}
6369
/>
6470

0 commit comments

Comments
 (0)