chore: move ServerTrans to packages/lib (#20353)
* chore: move ServerTrans to packages/lib * remove file not meant for this PR
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import ServerTrans from "@calcom/lib/components/ServerTrans";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { Dialog, DialogContent, DialogFooter, DialogClose } from "@calcom/ui/components/dialog";
|
||||
import ServerTrans from "@calcom/web/components/ServerTrans";
|
||||
|
||||
interface SecondaryEmailConfirmModalProps {
|
||||
email: string;
|
||||
|
||||
@@ -12,7 +12,7 @@ import { trpc } from "@calcom/trpc";
|
||||
import { Alert } from "@calcom/ui/components/alert";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
import { EmptyScreen } from "@calcom/ui/components/empty-screen";
|
||||
import ServerTrans from "@calcom/web/components/ServerTrans";
|
||||
import ServerTrans from "@calcom/lib/components/ServerTrans";
|
||||
|
||||
import { TRPCClientError } from "@trpc/client";
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ import { Button } from "@calcom/ui/components/button";
|
||||
import { PasswordField, CheckboxField, TextField, Form } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { showToast } from "@calcom/ui/components/toast";
|
||||
import ServerTrans from "@calcom/web/components/ServerTrans";
|
||||
import ServerTrans from "@calcom/lib/components/ServerTrans";
|
||||
|
||||
import type { getServerSideProps } from "@lib/signup/getServerSideProps";
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ import { Button } from "@calcom/ui/components/button";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { showToast } from "@calcom/ui/components/toast";
|
||||
import { Tooltip } from "@calcom/ui/components/tooltip";
|
||||
import ServerTrans from "@calcom/web/components/ServerTrans";
|
||||
import ServerTrans from "@calcom/lib/components/ServerTrans";
|
||||
|
||||
import type { getServerSideProps } from "./_getServerSideProps";
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ import { Button } from "@calcom/ui/components/button";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { showToast } from "@calcom/ui/components/toast";
|
||||
import { Tooltip } from "@calcom/ui/components/tooltip";
|
||||
import ServerTrans from "@calcom/web/components/ServerTrans";
|
||||
import ServerTrans from "@calcom/lib/components/ServerTrans";
|
||||
|
||||
export interface IZapierSetupProps {
|
||||
inviteLink?: string;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { TFunction } from "i18next";
|
||||
|
||||
import { APP_NAME, WEBAPP_URL } from "@calcom/lib/constants";
|
||||
import ServerTrans from "@calcom/web/components/ServerTrans";
|
||||
import ServerTrans from "@calcom/lib/components/ServerTrans";
|
||||
|
||||
import { BaseEmailHtml, CallToAction } from "../components";
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ import type { TFunction } from "i18next";
|
||||
import { AppStoreLocationType } from "@calcom/app-store/locations";
|
||||
import { WEBAPP_URL } from "@calcom/lib/constants";
|
||||
import type { CalendarEvent, Person } from "@calcom/types/Calendar";
|
||||
import ServerTrans from "@calcom/web/components/ServerTrans";
|
||||
import ServerTrans from "@calcom/lib/components/ServerTrans";
|
||||
|
||||
import { BaseScheduledEmail } from "./BaseScheduledEmail";
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { TFunction } from "i18next";
|
||||
|
||||
import ServerTrans from "@calcom/web/components/ServerTrans";
|
||||
import ServerTrans from "@calcom/lib/components/ServerTrans";
|
||||
|
||||
import { BaseEmailHtml, CallToAction } from "../components";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { APP_NAME, WEBAPP_URL } from "@calcom/lib/constants";
|
||||
import ServerTrans from "@calcom/web/components/ServerTrans";
|
||||
import ServerTrans from "@calcom/lib/components/ServerTrans";
|
||||
|
||||
import type { OrganizationCreation } from "../../templates/organization-creation-email";
|
||||
import { V2BaseEmailHtml } from "../components";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { TFunction } from "i18next";
|
||||
|
||||
import { WEBAPP_URL } from "@calcom/lib/constants";
|
||||
import ServerTrans from "@calcom/web/components/ServerTrans";
|
||||
import ServerTrans from "@calcom/lib/components/ServerTrans";
|
||||
|
||||
import { BaseEmailHtml, CallToAction } from "../components";
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { TFunction } from "i18next";
|
||||
|
||||
import { APP_NAME, WEBAPP_URL, IS_PRODUCTION } from "@calcom/lib/constants";
|
||||
import ServerTrans from "@calcom/web/components/ServerTrans";
|
||||
import ServerTrans from "@calcom/lib/components/ServerTrans";
|
||||
|
||||
import { getSubject, getTypeOfInvite } from "../../templates/team-invite-email";
|
||||
import { V2BaseEmailHtml, CallToAction } from "../components";
|
||||
|
||||
@@ -12,7 +12,7 @@ import { Alert } from "@calcom/ui/components/alert";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
import { EmptyScreen } from "@calcom/ui/components/empty-screen";
|
||||
import { Form } from "@calcom/ui/components/form";
|
||||
import ServerTrans from "@calcom/web/components/ServerTrans";
|
||||
import ServerTrans from "@calcom/lib/components/ServerTrans";
|
||||
|
||||
import { useBookerStore } from "../../store";
|
||||
import type { UseBookingFormReturnType } from "../hooks/useBookingForm";
|
||||
|
||||
@@ -5,7 +5,7 @@ import { useCompatSearchParams } from "@calcom/lib/hooks/useCompatSearchParams";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import classNames from "@calcom/ui/classNames";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
import ServerTrans from "@calcom/web/components/ServerTrans";
|
||||
import ServerTrans from "@calcom/lib/components/ServerTrans";
|
||||
|
||||
interface IOutOfOfficeInSlotsProps {
|
||||
date: string;
|
||||
|
||||
@@ -23,7 +23,7 @@ import { Select } from "@calcom/ui/components/form";
|
||||
import { ToggleGroup } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { showToast } from "@calcom/ui/components/toast";
|
||||
import ServerTrans from "@calcom/web/components/ServerTrans";
|
||||
import ServerTrans from "@calcom/lib/components/ServerTrans";
|
||||
|
||||
import type { PendingMember } from "../lib/types";
|
||||
import { GoogleWorkspaceInviteButton } from "./GoogleWorkspaceInviteButton";
|
||||
|
||||
@@ -23,7 +23,7 @@ import {
|
||||
SheetTitle,
|
||||
} from "@calcom/ui/components/sheet";
|
||||
import { showToast } from "@calcom/ui/components/toast";
|
||||
import ServerTrans from "@calcom/web/components/ServerTrans";
|
||||
import ServerTrans from "@calcom/lib/components/ServerTrans";
|
||||
|
||||
type TeamMemberItemProps = {
|
||||
member: Omit<TeamMember, "defaultScheduleId"> & { weight?: number };
|
||||
|
||||
@@ -27,7 +27,7 @@ import { Button } from "@calcom/ui/components/button";
|
||||
import { Input } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { showToast } from "@calcom/ui/components/toast";
|
||||
import ServerTrans from "@calcom/web/components/ServerTrans";
|
||||
import ServerTrans from "@calcom/lib/components/ServerTrans";
|
||||
|
||||
export type TEventTypeLocation = Pick<EventTypeSetupProps["eventType"], "locations">;
|
||||
export type TLocationOptions = Pick<EventTypeSetupProps, "locationOptions">["locationOptions"];
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { TFunction } from "i18next";
|
||||
import Link from "next/link";
|
||||
|
||||
import ServerTrans from "@calcom/web/components/ServerTrans";
|
||||
import ServerTrans from "@calcom/lib/components/ServerTrans";
|
||||
|
||||
export default function WeightDescription({ t }: { t: TFunction }) {
|
||||
return (
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { ChildrenEventType } from "@calcom/features/eventtypes/components/ChildrenEventTypeSelect";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import { ConfirmationDialogContent, Dialog } from "@calcom/ui/components/dialog";
|
||||
import ServerTrans from "@calcom/web/components/ServerTrans";
|
||||
import ServerTrans from "@calcom/lib/components/ServerTrans";
|
||||
|
||||
interface ManagedEventDialogProps {
|
||||
slugExistsChildrenDialogOpen: ChildrenEventType[];
|
||||
|
||||
@@ -7,7 +7,7 @@ import { Button } from "@calcom/ui/components/button";
|
||||
import { Dialog, DialogContent, DialogFooter, DialogClose } from "@calcom/ui/components/dialog";
|
||||
import { InputField } from "@calcom/ui/components/form";
|
||||
import { SettingsToggle } from "@calcom/ui/components/form";
|
||||
import ServerTrans from "@calcom/web/components/ServerTrans";
|
||||
import ServerTrans from "@calcom/lib/components/ServerTrans";
|
||||
|
||||
export type EmailNotificationToggleCustomClassNames = SettingsToggleClassNames & {
|
||||
confirmationDialog?: {
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ import { CheckboxField } from "@calcom/ui/components/form";
|
||||
import { Input } from "@calcom/ui/components/form";
|
||||
import { SettingsToggle } from "@calcom/ui/components/form";
|
||||
import { RadioField } from "@calcom/ui/components/radio";
|
||||
import ServerTrans from "@calcom/web/components/ServerTrans";
|
||||
import ServerTrans from "@calcom/lib/components/ServerTrans";
|
||||
|
||||
export type RequiresConfirmationCustomClassNames = SettingsToggleClassNames & {
|
||||
radioGroupContainer?: string;
|
||||
|
||||
@@ -12,7 +12,7 @@ import { trpc } from "@calcom/trpc/react";
|
||||
import { Alert } from "@calcom/ui/components/alert";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
import { EmptyScreen } from "@calcom/ui/components/empty-screen";
|
||||
import ServerTrans from "@calcom/web/components/ServerTrans";
|
||||
import ServerTrans from "@calcom/lib/components/ServerTrans";
|
||||
|
||||
export type EventType = Pick<EventTypeSetupProps, "eventType">["eventType"] &
|
||||
EventTypeAppCardComponentProps["eventType"];
|
||||
|
||||
@@ -28,7 +28,7 @@ import { Label } from "@calcom/ui/components/form";
|
||||
import { Select } from "@calcom/ui/components/form";
|
||||
import { SettingsToggle } from "@calcom/ui/components/form";
|
||||
import { RadioAreaGroup as RadioArea } from "@calcom/ui/components/radio";
|
||||
import ServerTrans from "@calcom/web/components/ServerTrans";
|
||||
import ServerTrans from "@calcom/lib/components/ServerTrans";
|
||||
|
||||
import { EditWeightsForAllTeamMembers } from "../../EditWeightsForAllTeamMembers";
|
||||
import WeightDescription from "../../WeightDescription";
|
||||
|
||||
@@ -17,7 +17,7 @@ import { Button } from "@calcom/ui/components/button";
|
||||
import { Dialog, DialogContent } from "@calcom/ui/components/dialog";
|
||||
import { EmptyScreen } from "@calcom/ui/components/empty-screen";
|
||||
import { showToast } from "@calcom/ui/components/toast";
|
||||
import ServerTrans from "@calcom/web/components/ServerTrans";
|
||||
import ServerTrans from "@calcom/lib/components/ServerTrans";
|
||||
|
||||
export const EventWebhooksTab = ({ eventType }: Pick<EventTypeSetupProps, "eventType">) => {
|
||||
const { t } = useLocale();
|
||||
|
||||
@@ -22,7 +22,7 @@ import { Switch } from "@calcom/ui/components/form";
|
||||
import { Icon } from "@calcom/ui/components/icon";
|
||||
import { showToast } from "@calcom/ui/components/toast";
|
||||
import { Tooltip } from "@calcom/ui/components/tooltip";
|
||||
import ServerTrans from "@calcom/web/components/ServerTrans";
|
||||
import ServerTrans from "@calcom/lib/components/ServerTrans";
|
||||
|
||||
type PartialWorkflowType = Pick<WorkflowType, "name" | "activeOn" | "isOrg" | "steps" | "id" | "readOnly">;
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ import classNames from "@calcom/ui/classNames";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
import { Label } from "@calcom/ui/components/form";
|
||||
import { CheckboxField } from "@calcom/ui/components/form";
|
||||
import ServerTrans from "@calcom/web/components/ServerTrans";
|
||||
import ServerTrans from "@calcom/lib/components/ServerTrans";
|
||||
|
||||
import SectionBottomActions from "./SectionBottomActions";
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ import { Icon } from "@calcom/ui/components/icon";
|
||||
import { SkeletonText } from "@calcom/ui/components/skeleton";
|
||||
import { showToast } from "@calcom/ui/components/toast";
|
||||
import { Tooltip } from "@calcom/ui/components/tooltip";
|
||||
import ServerTrans from "@calcom/web/components/ServerTrans";
|
||||
import ServerTrans from "@calcom/lib/components/ServerTrans";
|
||||
|
||||
import CreateNewOutOfOfficeEntryButton from "./CreateNewOutOfOfficeEntryButton";
|
||||
import { CreateOrEditOutOfOfficeEntryModal } from "./CreateOrEditOutOfOfficeModal";
|
||||
|
||||
Reference in New Issue
Block a user