From efb49d8e34eafdc3bc1f2a4cc277169729a9251a Mon Sep 17 00:00:00 2001 From: n4ze3m Date: Sun, 29 Dec 2024 13:28:15 +0530 Subject: [PATCH] feat: Add RTL support for sidepanel settings header --- src/components/Sidepanel/Settings/header.tsx | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/components/Sidepanel/Settings/header.tsx b/src/components/Sidepanel/Settings/header.tsx index 9f714d8..0919926 100644 --- a/src/components/Sidepanel/Settings/header.tsx +++ b/src/components/Sidepanel/Settings/header.tsx @@ -1,14 +1,22 @@ -import { ChevronLeft } from "lucide-react" +import { ChevronLeft, ChevronRight } from "lucide-react" import { useTranslation } from "react-i18next" import { Link } from "react-router-dom" import logoImage from "~/assets/icon.png" export const SidepanelSettingsHeader = () => { - const { t } = useTranslation("common") + const { t , i18n} = useTranslation("common") + const isRTL = i18n?.dir() === "rtl" + return (
- + { + isRTL ? ( + + ) : ( + + ) + }
{t("pageAssist")}