fix: replace useTranslation with useLocale in AppCard component (#23379)
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import { useAutoAnimate } from "@formkit/auto-animate/react";
|
||||
import Link from "next/link";
|
||||
import { useTranslation } from "react-i18next";
|
||||
|
||||
import { useAppContextWithSchema } from "@calcom/app-store/EventTypeAppContext";
|
||||
import { useIsPlatform } from "@calcom/atoms/hooks/useIsPlatform";
|
||||
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
||||
import type { RouterOutputs } from "@calcom/trpc/react";
|
||||
import classNames from "@calcom/ui/classNames";
|
||||
import { Button } from "@calcom/ui/components/button";
|
||||
@@ -42,7 +42,7 @@ export default function AppCard({
|
||||
hideSettingsIcon?: boolean;
|
||||
hideAppCardOptions?: boolean;
|
||||
}) {
|
||||
const { t } = useTranslation();
|
||||
const { t } = useLocale();
|
||||
const [animationRef] = useAutoAnimate<HTMLDivElement>();
|
||||
const { setAppData, LockedIcon, disabled: managedDisabled } = useAppContextWithSchema();
|
||||
const isPlatform = useIsPlatform();
|
||||
|
||||
Reference in New Issue
Block a user