[CAL-488] Timezone selection has a weird double dropdown (#6851)

Co-authored-by: gitstart-calcom <[email protected]>
This commit is contained in:
GitStart-Cal.comandgitstart-calcom authored and GitHub committed 2023-02-08 12:08:00 +00:00
1 parent 8c9871c6ce
commit 6fa4befc9b
4 files changed
+78 -44

No files matched your search

@@ -21,6 +21,12 @@ export function TimezoneSelect({ className, components, ...props }: SelectProps)
"America/Asuncion": "Asuncion",
}}
{...props}
formatOptionLabel={(option) => <p className="truncate">{(option as ITimezoneOption).value}</p>}
getOptionLabel={(data) => {
const option = data as ITimezoneOption;
const formatedLabel = option.label.split(")")[0].replace("(", " ").replace("T", "T ");
return `${option.value}${formatedLabel}`;
}}
/>
);
}