feat: use moment timezones

This commit is contained in:
karishmas6
2024-09-13 15:57:48 +05:30
parent 2570029564
commit f008a76c42

View File

@@ -4,6 +4,7 @@ import { MenuItem, TextField, Typography, Box } from "@mui/material";
import { Dropdown } from "../atoms/DropdownMui";
import Button from "@mui/material/Button";
import { modalStyle } from "./AddWhereCondModal";
import { validMomentTimezones } from '../../constants/const';
interface ScheduleSettingsProps {
isOpen: boolean;
@@ -143,7 +144,7 @@ export const ScheduleSettingsModal = ({ isOpen, handleStart, handleClose }: Sche
handleSelect={(e) => handleChange('timezone', e.target.value)}
sx={dropDownStyle}
>
{timezones.map((tz) => (
{validMomentTimezones.map((tz) => (
<MenuItem key={tz} value={tz}>{tz}</MenuItem>
))}
</Dropdown>