From a321a933abbabddbb532b152f38e4219f2aabc05 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Fri, 13 Sep 2024 12:23:18 +0530 Subject: [PATCH] feat: map days --- src/components/molecules/ScheduleSettings.tsx | 20 ++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/src/components/molecules/ScheduleSettings.tsx b/src/components/molecules/ScheduleSettings.tsx index de6f3069..7a5868d6 100644 --- a/src/components/molecules/ScheduleSettings.tsx +++ b/src/components/molecules/ScheduleSettings.tsx @@ -62,6 +62,16 @@ export const ScheduleSettingsModal = ({ isOpen, handleStart, handleClose }: Sche 'MONTHS' ] + const days = [ + 'MONDAY', + 'TUESDAY', + 'WEDNESDAY', + 'THURSDAY', + 'FRIDAY', + 'SATURDAY', + 'SUNDAY' + ] + return ( handleChange('startFrom', e.target.value)} sx={dropDownStyle} > - Monday - Tuesday - Wednesday - Thursday - Friday - Saturday - Sunday + {days.map((day) => ( + {day} + ))}