diff --git a/client/src/components/ArchiveButton.tsx b/client/src/components/ArchiveButton.tsx index faa3f7a..2f09df9 100644 --- a/client/src/components/ArchiveButton.tsx +++ b/client/src/components/ArchiveButton.tsx @@ -9,6 +9,7 @@ type Props = { // eslint-disable-next-line @typescript-eslint/ban-types fetchItems: Function; disabled: boolean; + handleSubmit: () => void; }; function exampleReducer(dispatchState: any, action: any) { @@ -26,7 +27,12 @@ function exampleReducer(dispatchState: any, action: any) { } } -const ArchiveButton: React.FC = ({ id, fetchItems, disabled }) => { +const ArchiveButton: React.FC = ({ + id, + fetchItems, + disabled, + handleSubmit, +}) => { const [dispatchState, dispatch] = React.useReducer(exampleReducer, { closeOnEscape: false, closeOnDimmerClick: false, @@ -73,6 +79,7 @@ const ArchiveButton: React.FC = ({ id, fetchItems, disabled }) => {

Are you sure you wish to archive this item?