From d95868564f951f49f8f5557076c90c303dde1e58 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Fri, 13 Sep 2024 12:18:49 +0530 Subject: [PATCH] feat: map units --- src/components/molecules/ScheduleSettings.tsx | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/components/molecules/ScheduleSettings.tsx b/src/components/molecules/ScheduleSettings.tsx index e1791f5a..de6f3069 100644 --- a/src/components/molecules/ScheduleSettings.tsx +++ b/src/components/molecules/ScheduleSettings.tsx @@ -55,6 +55,13 @@ export const ScheduleSettingsModal = ({ isOpen, handleStart, handleClose }: Sche 'Asia/Kolkata' ]; + const units = [ + 'HOURS', + 'DAYS', + 'WEEKS', + 'MONTHS' + ] + return ( handleChange('runEveryUnit', e.target.value)} sx={dropDownStyle} > - hours - days - weeks - months + {units.map((un) => ( + {un} + ))}