From 0024b026381bd330f65a031030da144cd766c846 Mon Sep 17 00:00:00 2001 From: arc-alex Date: Wed, 13 Dec 2023 17:31:33 +0100 Subject: [PATCH] small refinment --- .../modals/sheets-modal/SheetsModal.tsx | 93 +++++++++++-------- .../src/controllers/ontimeController.ts | 9 +- apps/server/src/utils/sheetsAuth.ts | 6 +- .../src/definitions/core/GoogleSheet.type.ts | 2 +- 4 files changed, 62 insertions(+), 48 deletions(-) diff --git a/apps/client/src/features/modals/sheets-modal/SheetsModal.tsx b/apps/client/src/features/modals/sheets-modal/SheetsModal.tsx index 494b0c8bf..4b53ba59d 100644 --- a/apps/client/src/features/modals/sheets-modal/SheetsModal.tsx +++ b/apps/client/src/features/modals/sheets-modal/SheetsModal.tsx @@ -2,6 +2,8 @@ import { ChangeEvent, useEffect, useRef, useState } from 'react'; import { Button, Input, + InputGroup, + InputRightAddon, Modal, ModalBody, ModalCloseButton, @@ -193,53 +195,64 @@ export default function SheetsModal(props: SheetsModalProps) { {sheetState.auth ?
You are authenticated
:
You are not authenticated
}
- - {sheetState.id ? : } + + + + {sheetState.id ? : } + +
- - {sheetState.worksheet ? : } + + + + {sheetState.worksheet ? ( + + ) : ( + + )} + + +
+
+
+ +
)} - {!rundown && ( -
- - -
- )} {!rundown && (