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:
5 files changed
+17
-7
No files matched your search
@@ -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 = {
|
||||
|
||||
@@ -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 };
|
||||
Reference in new issue
Block a user