From a82977105e44bbe600a31e98cb1dc491fbf20e19 Mon Sep 17 00:00:00 2001 From: hanif salafi Date: Sat, 7 Dec 2024 23:32:39 +0700 Subject: [PATCH] feat: fixing layout, sidebar, etc on Admin --- components/landing-page/Navbar.tsx | 2 ++ components/logo.tsx | 4 +-- components/partials/footer/index.tsx | 10 +------ .../partials/header/locale-switcher.tsx | 4 +-- .../partials/sidebar/common/menu-item.tsx | 2 +- .../partials/sidebar/menu/menu-classic.tsx | 8 +++--- .../partials/sidebar/sidebar-content.tsx | 4 +-- .../partials/sidebar/sidebar-hover-toggle.tsx | 2 +- .../partials/sidebar/sidebar-toggle.tsx | 2 +- hooks/use-config.ts | 2 +- lib/menus.ts | 28 +++++++++---------- messages/en.json | 12 ++++++++ messages/in.json | 12 ++++++++ package-lock.json | 3 ++ 14 files changed, 58 insertions(+), 37 deletions(-) diff --git a/components/landing-page/Navbar.tsx b/components/landing-page/Navbar.tsx index 0efd812c..07e5afd5 100644 --- a/components/landing-page/Navbar.tsx +++ b/components/landing-page/Navbar.tsx @@ -1,3 +1,5 @@ +"use client" + import React, { useState } from "react"; import ThemeSwitcher from "@/components/partials/header/theme-switcher"; import { diff --git a/components/logo.tsx b/components/logo.tsx index 130e98d1..ae258f42 100644 --- a/components/logo.tsx +++ b/components/logo.tsx @@ -25,12 +25,12 @@ const Logo = () => { if (config.sidebar === "two-column" || !isDesktop) return null; return ( - + {/* {(!config?.collapsed || hovered) && (

D

)} */} - logo + logo ); }; diff --git a/components/partials/footer/index.tsx b/components/partials/footer/index.tsx index 0dafb785..4d54d40f 100644 --- a/components/partials/footer/index.tsx +++ b/components/partials/footer/index.tsx @@ -11,17 +11,9 @@ const DashCodeFooter = async () => {
- COPYRIGHT © {new Date().getFullYear()} DashCode, All rights Reserved
- Hand-crafted & Made by{" "} - - Codeshaper - + COPYRIGHT © {new Date().getFullYear()} Media Hub, All rights Reserved
diff --git a/components/partials/header/locale-switcher.tsx b/components/partials/header/locale-switcher.tsx index daad6afd..b65a1b77 100644 --- a/components/partials/header/locale-switcher.tsx +++ b/components/partials/header/locale-switcher.tsx @@ -64,7 +64,7 @@ export default function LocalSwitcher() { In
- + {/*
Ar
-
+
*/} diff --git a/components/partials/sidebar/common/menu-item.tsx b/components/partials/sidebar/common/menu-item.tsx index 4e34875d..1e04826d 100644 --- a/components/partials/sidebar/common/menu-item.tsx +++ b/components/partials/sidebar/common/menu-item.tsx @@ -137,7 +137,7 @@ const MenuItem = ({ href, label, icon, active, id, collapsed }: MenuItemProps) = > {(!collapsed || hovered) && (

{isDesktop && ( -

+
@@ -71,7 +71,7 @@ export function MenuClassic({ }) { - {isDesktop && ( + {/* {isDesktop && (
- )} + )} */} -