diff --git a/src/Utils/utils.ts b/src/Utils/utils.ts index add2677343b..7cfcd124993 100644 --- a/src/Utils/utils.ts +++ b/src/Utils/utils.ts @@ -104,9 +104,6 @@ export const isAppleDevice = _isAppleDevice(); * * @deprecated Use `cn` from `@/lib/utils` instead. */ -export const classNames = (...classes: (string | boolean | undefined)[]) => { - return classes.filter(Boolean).join(" "); -}; export const isUserOnline = (user: { last_login: DateLike }) => { return user.last_login diff --git a/src/components/Common/LanguageSelector.tsx b/src/components/Common/LanguageSelector.tsx index e1f3446eca0..a3b9d5c3d5d 100644 --- a/src/components/Common/LanguageSelector.tsx +++ b/src/components/Common/LanguageSelector.tsx @@ -2,7 +2,9 @@ import careConfig from "@careConfig"; import { useEffect } from "react"; import { useTranslation } from "react-i18next"; -import { classNames, keysOf } from "@/Utils/utils"; +import { cn } from "@/lib/utils"; + +import { keysOf } from "@/Utils/utils"; import { LANGUAGES } from "@/i18n"; export const LanguageSelector = (props: any) => { @@ -27,7 +29,7 @@ export const LanguageSelector = (props: any) => { return (
; @@ -222,7 +224,7 @@ export default function useFilters({ } return (
limit ? "visible" : "invisible", !noMargin && "mt-4",