From 713c29a6b1462958530d2e4e04a5a6383fc0cef6 Mon Sep 17 00:00:00 2001 From: thsparks Date: Tue, 26 Mar 2024 16:51:20 -0700 Subject: [PATCH] Prettier --- teachertool/src/components/ConfirmationModal.tsx | 4 +++- teachertool/src/types/modalOptions.ts | 8 ++++---- 2 files changed, 7 insertions(+), 5 deletions(-) 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;