feat: make calcom UI dumb again (#19658)
* remove create button for teams from calcom ui * migrate timezone select to features * remove trpc from phone and storybook provider * new-yarn.lock * fix imports + test file for select * fix platform timezone select to use Raw timezone select * fix timezone type import * use correct select in timezone-select.tsx - needs trpc version * fix lock and remove test-utils * fix log file * Updated yarn.lock * Fixed types * Fixed tests --------- Co-authored-by: Keith Williams <[email protected]>
This commit is contained in:
1 parent
1b111c8add
commit
4cdb8f3bae
30 files changed
+97
-89
No files matched your search
@@ -5,6 +5,7 @@ import { useMemo, useState } from "react";
|
||||
import { Controller, useFieldArray, useForm, useFormContext, useWatch } from "react-hook-form";
|
||||
|
||||
import dayjs from "@calcom/dayjs";
|
||||
import { TimezoneSelect as WebTimezoneSelect } from "@calcom/features/components/timezone-select";
|
||||
import type {
|
||||
BulkUpdatParams,
|
||||
EventTypes,
|
||||
@@ -32,7 +33,6 @@ import {
|
||||
SelectSkeletonLoader,
|
||||
Skeleton,
|
||||
Switch,
|
||||
TimezoneSelect as WebTimezoneSelect,
|
||||
Tooltip,
|
||||
VerticalDivider,
|
||||
} from "@calcom/ui";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { TimezoneSelectProps } from "@calcom/ui";
|
||||
import { TimezoneSelectComponent } from "@calcom/ui";
|
||||
import { TimezoneSelectComponent as TimezoneSelect } from "@calcom/features/components/timezone-select";
|
||||
import type { TimezoneSelectProps } from "@calcom/features/components/timezone-select";
|
||||
|
||||
import useGetCityTimezones from "../hooks/useGetCityTimezones";
|
||||
|
||||
@@ -7,7 +7,7 @@ export function Timezone(props: TimezoneSelectProps) {
|
||||
const { isLoading, data } = useGetCityTimezones();
|
||||
|
||||
return (
|
||||
<TimezoneSelectComponent
|
||||
<TimezoneSelect
|
||||
{...props}
|
||||
data={
|
||||
Array.isArray(data)
|
||||
|
||||
Reference in new issue
Block a user