diff --git a/teachertool/src/components/ConfirmationModal.tsx b/teachertool/src/components/ConfirmationModal.tsx index b357b9c970ec..b2b5cd8c1429 100644 --- a/teachertool/src/components/ConfirmationModal.tsx +++ b/teachertool/src/components/ConfirmationModal.tsx @@ -8,7 +8,9 @@ import { ConfirmationModalOptions } from "../types/modalOptions"; export interface IProps {} export const ConfirmationModal: React.FC = () => { const { state: teacherTool } = useContext(AppStateContext); - const [confirmationModalOptions, setConfirmationModalOptions] = useState(undefined); + const [confirmationModalOptions, setConfirmationModalOptions] = useState( + undefined + ); useEffect(() => { if (teacherTool.modalOptions?.modal === "confirmation") { diff --git a/teachertool/src/types/modalOptions.ts b/teachertool/src/types/modalOptions.ts index 5663583f5beb..f6c5f645a1ce 100644 --- a/teachertool/src/types/modalOptions.ts +++ b/teachertool/src/types/modalOptions.ts @@ -4,20 +4,20 @@ export type ConfirmationModalOptions = { message: string; onCancel: () => void; onContinue: () => void; -} +}; export type BlockPickerOptions = { modal: "block-picker"; criteriaInstanceId: string; paramName: string; -} +}; export type CatalogDisplayOptions = { modal: "catalog-display"; -} +}; export type ImportRubricOptions = { modal: "import-rubric"; -} +}; export type ModalOptions = CatalogDisplayOptions | ImportRubricOptions | ConfirmationModalOptions | BlockPickerOptions;