Request the inclusion Assuncion Time Zone (#2840)

Co-authored-by: gitstart <[email protected]>
Co-authored-by: Júlio Piubello da Silva Cabral <[email protected]>
This commit is contained in:
authored and GitHub committed 2022-05-23 13:12:41 +02:00
1 parent 0eff265682
commit c5ad74f61c
5 files changed
+17 -7

No files matched your search

+2 -1
View File
@@ -1,10 +1,11 @@
import { FC, useEffect, useState } from "react";
import TimezoneSelect, { ITimezoneOption } from "react-timezone-select";
import Switch from "@calcom/ui/Switch";
import { useLocale } from "@lib/hooks/useLocale";
import TimezoneSelect, { ITimezoneOption } from "@components/ui/form/TimezoneSelect";
import { is24h, timeZone } from "../../lib/clock";
type Props = {
+11 -2
View File
@@ -1,6 +1,11 @@
import classNames from "classnames";
import { components } from "react-select";
import BaseSelect, { ITimezone, Props as SelectProps } from "react-timezone-select";
import BaseSelect, {
allTimezones,
ITimezoneOption,
ITimezone,
Props as SelectProps,
} from "react-timezone-select";
import { InputComponent } from "@components/ui/form/Select";
@@ -28,6 +33,10 @@ function TimezoneSelect({ className, ...props }: SelectProps) {
},
}),
}}
timezones={{
...allTimezones,
"America/Asuncion": "Asuncion",
}}
components={{
...components,
IndicatorSeparator: () => null,
@@ -40,4 +49,4 @@ function TimezoneSelect({ className, ...props }: SelectProps) {
}
export default TimezoneSelect;
export type { ITimezone };
export type { ITimezone, ITimezoneOption };