Skip to content

Commit d944316

Browse files
authored
fix: replace useTranslation with useLocale in AppCard component (calcom#23379)
1 parent e8dbab9 commit d944316

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/app-store/_components/AppCard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { useAutoAnimate } from "@formkit/auto-animate/react";
22
import Link from "next/link";
3-
import { useTranslation } from "react-i18next";
43

54
import { useAppContextWithSchema } from "@calcom/app-store/EventTypeAppContext";
65
import { useIsPlatform } from "@calcom/atoms/hooks/useIsPlatform";
6+
import { useLocale } from "@calcom/lib/hooks/useLocale";
77
import type { RouterOutputs } from "@calcom/trpc/react";
88
import classNames from "@calcom/ui/classNames";
99
import { Button } from "@calcom/ui/components/button";
@@ -42,7 +42,7 @@ export default function AppCard({
4242
hideSettingsIcon?: boolean;
4343
hideAppCardOptions?: boolean;
4444
}) {
45-
const { t } = useTranslation();
45+
const { t } = useLocale();
4646
const [animationRef] = useAutoAnimate<HTMLDivElement>();
4747
const { setAppData, LockedIcon, disabled: managedDisabled } = useAppContextWithSchema();
4848
const isPlatform = useIsPlatform();

0 commit comments

Comments
 (0)