From 7fcf8153af37b3fc9ef30dd13eec48b041ad7386 Mon Sep 17 00:00:00 2001 From: arc-alex Date: Tue, 2 Jan 2024 15:49:10 +0100 Subject: [PATCH] cleanup and rename --- .../modals/sheets-modal/SheetsModal.tsx | 57 +++++++------------ .../modals/sheets-modal/Step.module.scss | 3 - .../src/features/modals/sheets-modal/Step.tsx | 19 ++++--- 3 files changed, 34 insertions(+), 45 deletions(-) diff --git a/apps/client/src/features/modals/sheets-modal/SheetsModal.tsx b/apps/client/src/features/modals/sheets-modal/SheetsModal.tsx index 29755e0a3..e35521c8f 100644 --- a/apps/client/src/features/modals/sheets-modal/SheetsModal.tsx +++ b/apps/client/src/features/modals/sheets-modal/SheetsModal.tsx @@ -5,6 +5,7 @@ import { AlertIcon, AlertTitle, Button, + HStack, Input, Modal, ModalBody, @@ -61,7 +62,6 @@ export default function SheetsModal(props: SheetsModalProps) { worksheetOptions: [], }); - //TODO: soulde the be a button like now or on change? const testId = async () => { setState(await getSheetState(sheetRef.current?.value ?? '', worksheetRef.current?.value ?? '')); }; @@ -96,10 +96,6 @@ export default function SheetsModal(props: SheetsModalProps) { if (isOpen) { getSheetState(sheetRef.current?.value ?? '', worksheetRef.current?.value ?? '').then((data) => setState(data)); } - return () => { - // Alex: This function will be run when the component unmounts - console.log('Component is unmounting'); - }; }, [isOpen]); const handleAuthenticate = () => { @@ -170,15 +166,13 @@ export default function SheetsModal(props: SheetsModalProps) { Sync with Google Sheets Add information here, maybe a link too.
- The save button is also confusing, can we clarify? should the push data and pull data not be the end - game buttons here? For more information, see the docs
{!rundown ? ( <> - + @@ -208,9 +201,8 @@ export default function SheetsModal(props: SheetsModalProps) { - - - + + - + - +
@@ -273,7 +261,6 @@ export default function SheetsModal(props: SheetsModalProps) { )} - {rundown && (