From 80728ff4f93cc6f0b11b1097083e6c4ce73f5501 Mon Sep 17 00:00:00 2001 From: Austin Chen Date: Thu, 31 Mar 2022 02:09:08 -0700 Subject: [PATCH] Switch confirmation buttons to the new modal --- web/components/confirmation-button.tsx | 45 ++++++++++++++------------ 1 file changed, 25 insertions(+), 20 deletions(-) diff --git a/web/components/confirmation-button.tsx b/web/components/confirmation-button.tsx index 5d685e11..c23ec87c 100644 --- a/web/components/confirmation-button.tsx +++ b/web/components/confirmation-button.tsx @@ -1,4 +1,8 @@ import clsx from 'clsx' +import { useState } from 'react' +import { Col } from './layout/col' +import { Modal } from './layout/modal' +import { Row } from './layout/row' export function ConfirmationButton(props: { id: string @@ -20,34 +24,35 @@ export function ConfirmationButton(props: { }) { const { id, openModalBtn, cancelBtn, submitBtn, onSubmit, children } = props + const [open, setOpen] = useState(false) + return ( <> - - - -
-
+ + {children} - -
-
-
-
+ + + + + ) }