From 90026b2580d2e196eabfebb6bb7a9f2c26e19894 Mon Sep 17 00:00:00 2001 From: amhsirak Date: Mon, 20 Jan 2025 23:51:32 +0530 Subject: [PATCH 1/8] feat: lowercase unit --- src/components/robot/ScheduleSettings.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/robot/ScheduleSettings.tsx b/src/components/robot/ScheduleSettings.tsx index 658ce594..6eaf6f3d 100644 --- a/src/components/robot/ScheduleSettings.tsx +++ b/src/components/robot/ScheduleSettings.tsx @@ -190,7 +190,7 @@ export const ScheduleSettingsModal = ({ isOpen, handleStart, handleClose, initia sx={dropDownStyle} > {units.map((unit) => ( - {unit} + {unit.toLocaleLowerCase()} ))} From 768a5bfe748204141b5e2ba6bab3e650b0618b5e Mon Sep 17 00:00:00 2001 From: amhsirak Date: Mon, 20 Jan 2025 23:52:04 +0530 Subject: [PATCH 2/8] feat: lowercase day --- src/components/robot/ScheduleSettings.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/robot/ScheduleSettings.tsx b/src/components/robot/ScheduleSettings.tsx index 6eaf6f3d..53b6acdc 100644 --- a/src/components/robot/ScheduleSettings.tsx +++ b/src/components/robot/ScheduleSettings.tsx @@ -207,7 +207,7 @@ export const ScheduleSettingsModal = ({ isOpen, handleStart, handleClose, initia sx={dropDownStyle} > {days.map((day) => ( - {day} + {day.toLowerCase()} ))} From d3e58a588a590e27ff56ae02712a1ccc4d6368f3 Mon Sep 17 00:00:00 2001 From: amhsirak Date: Mon, 20 Jan 2025 23:52:37 +0530 Subject: [PATCH 3/8] feat: lowercase timezone --- src/components/robot/ScheduleSettings.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/robot/ScheduleSettings.tsx b/src/components/robot/ScheduleSettings.tsx index 53b6acdc..e3ffebb2 100644 --- a/src/components/robot/ScheduleSettings.tsx +++ b/src/components/robot/ScheduleSettings.tsx @@ -265,7 +265,7 @@ export const ScheduleSettingsModal = ({ isOpen, handleStart, handleClose, initia sx={dropDownStyle} > {validMomentTimezones.map((tz) => ( - {tz} + {tz.toLowerCase()} ))} From beb449e201c0e276dc2ecf99168b159a143a226d Mon Sep 17 00:00:00 2001 From: amhsirak Date: Mon, 20 Jan 2025 23:54:41 +0530 Subject: [PATCH 4/8] feat: capitalize timezone --- src/components/robot/ScheduleSettings.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/robot/ScheduleSettings.tsx b/src/components/robot/ScheduleSettings.tsx index e3ffebb2..6f6dec38 100644 --- a/src/components/robot/ScheduleSettings.tsx +++ b/src/components/robot/ScheduleSettings.tsx @@ -265,7 +265,7 @@ export const ScheduleSettingsModal = ({ isOpen, handleStart, handleClose, initia sx={dropDownStyle} > {validMomentTimezones.map((tz) => ( - {tz.toLowerCase()} + {tz.charAt(0).toUpperCase() + tz.slice(1).toLowerCase()} ))} From 974f3840df8e659f5f0d998ab1d0ef205aa4dee5 Mon Sep 17 00:00:00 2001 From: amhsirak Date: Mon, 20 Jan 2025 23:55:46 +0530 Subject: [PATCH 5/8] feat: capitalize unit --- src/components/robot/ScheduleSettings.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/robot/ScheduleSettings.tsx b/src/components/robot/ScheduleSettings.tsx index 6f6dec38..7f2c5db7 100644 --- a/src/components/robot/ScheduleSettings.tsx +++ b/src/components/robot/ScheduleSettings.tsx @@ -190,7 +190,7 @@ export const ScheduleSettingsModal = ({ isOpen, handleStart, handleClose, initia sx={dropDownStyle} > {units.map((unit) => ( - {unit.toLocaleLowerCase()} + {unit.charAt(0).toUpperCase() + unit.slice(1).toLowerCase()} ))} From a612d9a84426cf48da39db80eed17a33ab4aacd0 Mon Sep 17 00:00:00 2001 From: amhsirak Date: Mon, 20 Jan 2025 23:56:26 +0530 Subject: [PATCH 6/8] feat: capitalize day --- src/components/robot/ScheduleSettings.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/robot/ScheduleSettings.tsx b/src/components/robot/ScheduleSettings.tsx index 7f2c5db7..b676dcd9 100644 --- a/src/components/robot/ScheduleSettings.tsx +++ b/src/components/robot/ScheduleSettings.tsx @@ -207,7 +207,8 @@ export const ScheduleSettingsModal = ({ isOpen, handleStart, handleClose, initia sx={dropDownStyle} > {days.map((day) => ( - {day.toLowerCase()} + {day.charAt(0).toUpperCase() + day.slice(1).toLowerCase()} + ))} From fc4ba40335bd02ca0c801f8bf8394bc2b6f3b80c Mon Sep 17 00:00:00 2001 From: amhsirak Date: Mon, 20 Jan 2025 23:56:38 +0530 Subject: [PATCH 7/8] chore: lint --- src/components/robot/ScheduleSettings.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/robot/ScheduleSettings.tsx b/src/components/robot/ScheduleSettings.tsx index b676dcd9..4dbc702f 100644 --- a/src/components/robot/ScheduleSettings.tsx +++ b/src/components/robot/ScheduleSettings.tsx @@ -208,7 +208,7 @@ export const ScheduleSettingsModal = ({ isOpen, handleStart, handleClose, initia > {days.map((day) => ( {day.charAt(0).toUpperCase() + day.slice(1).toLowerCase()} - + ))} From 831c5c4b59bf3b8db8e66790ed537837fd189646 Mon Sep 17 00:00:00 2001 From: amhsirak Date: Mon, 20 Jan 2025 23:56:55 +0530 Subject: [PATCH 8/8] fix: format --- src/components/robot/ScheduleSettings.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/robot/ScheduleSettings.tsx b/src/components/robot/ScheduleSettings.tsx index 4dbc702f..71951646 100644 --- a/src/components/robot/ScheduleSettings.tsx +++ b/src/components/robot/ScheduleSettings.tsx @@ -207,7 +207,8 @@ export const ScheduleSettingsModal = ({ isOpen, handleStart, handleClose, initia sx={dropDownStyle} > {days.map((day) => ( - {day.charAt(0).toUpperCase() + day.slice(1).toLowerCase()} + + {day.charAt(0).toUpperCase() + day.slice(1).toLowerCase()} ))}