From d315a397935140598bc0d3c1a14c7ec987ee462c Mon Sep 17 00:00:00 2001 From: n4ze3m Date: Sat, 8 Feb 2025 13:30:08 +0530 Subject: [PATCH] refactor: restructure Layout and SettingsLayout components for improved responsiveness and layout consistency --- src/components/Layouts/Layout.tsx | 3 - .../Layouts/SettingsOptionLayout.tsx | 174 +++++++++--------- 2 files changed, 88 insertions(+), 89 deletions(-) diff --git a/src/components/Layouts/Layout.tsx b/src/components/Layouts/Layout.tsx index 07aef22..a5ae02d 100644 --- a/src/components/Layouts/Layout.tsx +++ b/src/components/Layouts/Layout.tsx @@ -39,9 +39,6 @@ export default function OptionLayout({
-
-
-
{ const location = useLocation() const { t } = useTranslation(["settings", "common", "openai"]) - return ( - <> -
-
- } - icon={BlocksIcon} - current={location.pathname} - /> - - - - - - - -
-
- {children} +
+
+
+
+
+ } + icon={BlocksIcon} + current={location.pathname} + /> + + + + + + +
+
+ {children} +
+
-
-
- +
+
+
) }