From 993894970f712f96ac5b68a0e738852b527d34cd Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Thu, 24 Oct 2024 03:38:11 +0530 Subject: [PATCH] chore: lint --- src/components/molecules/RobotSettings.tsx | 86 +++++++++++----------- 1 file changed, 43 insertions(+), 43 deletions(-) diff --git a/src/components/molecules/RobotSettings.tsx b/src/components/molecules/RobotSettings.tsx index 843f86ae..3ecf2b33 100644 --- a/src/components/molecules/RobotSettings.tsx +++ b/src/components/molecules/RobotSettings.tsx @@ -20,9 +20,9 @@ interface RobotMeta { interface RobotWorkflow { workflow: WhereWhatPair[]; - } +} - interface ScheduleConfig { +interface ScheduleConfig { runEvery: number; runEveryUnit: 'MINUTES' | 'HOURS' | 'DAYS' | 'WEEKS' | 'MONTHS'; startFrom: 'SUNDAY' | 'MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' | 'SATURDAY'; @@ -32,26 +32,26 @@ interface RobotWorkflow { lastRunAt?: Date; nextRunAt?: Date; cronExpression?: string; - } - +} + interface RobotSettings { -id: string; -userId?: number; -recording_meta: RobotMeta; -recording: RobotWorkflow; -google_sheet_email?: string | null; -google_sheet_name?: string | null; -google_sheet_id?: string | null; -google_access_token?: string | null; -google_refresh_token?: string | null; -schedule?: ScheduleConfig | null; + id: string; + userId?: number; + recording_meta: RobotMeta; + recording: RobotWorkflow; + google_sheet_email?: string | null; + google_sheet_name?: string | null; + google_sheet_id?: string | null; + google_access_token?: string | null; + google_refresh_token?: string | null; + schedule?: ScheduleConfig | null; } interface RobotSettingsProps { - isOpen: boolean; - handleStart: (settings: RobotSettings) => void; - handleClose: () => void; -initialSettings?: RobotSettings | null; + isOpen: boolean; + handleStart: (settings: RobotSettings) => void; + handleClose: () => void; + initialSettings?: RobotSettings | null; } @@ -77,29 +77,29 @@ export const RobotSettingsModal = ({ isOpen, handleStart, handleClose, initialSe } - return ( - - <> - Robot Settings - - { - robot && ( - <> - - - ) - } - - - - ); + return ( + + <> + Robot Settings + + { + robot && ( + <> + + + ) + } + + + + ); };