generated from Luis/nextjs-python-web-template
ran format command
This commit is contained in:
committed by
Sara Pervana
parent
8746b0ba65
commit
449a4fa49b
@@ -1,9 +1,5 @@
|
||||
"use client";
|
||||
|
||||
export default function AccessPoint() {
|
||||
return (
|
||||
<div>
|
||||
Access Point Page
|
||||
</div>
|
||||
)
|
||||
return <div>Access Point Page</div>;
|
||||
}
|
||||
@@ -1,9 +1,5 @@
|
||||
"use client";
|
||||
|
||||
export default function DLG() {
|
||||
return (
|
||||
<div>
|
||||
DLG Page
|
||||
</div>
|
||||
)
|
||||
return <div>DLG Page</div>;
|
||||
}
|
||||
@@ -13,11 +13,11 @@ import React, { ReactNode } from "react";
|
||||
import { tw } from "@/utils/tailwind";
|
||||
import Link from "next/link";
|
||||
import ChevronLeftIcon from "@mui/icons-material/ChevronLeft";
|
||||
import HomeIcon from '@mui/icons-material/Home';
|
||||
import HubIcon from '@mui/icons-material/Hub';
|
||||
import PersonIcon from '@mui/icons-material/Person';
|
||||
import RouterIcon from '@mui/icons-material/Router';
|
||||
import StorageIcon from '@mui/icons-material/Storage';
|
||||
import HomeIcon from "@mui/icons-material/Home";
|
||||
import HubIcon from "@mui/icons-material/Hub";
|
||||
import PersonIcon from "@mui/icons-material/Person";
|
||||
import RouterIcon from "@mui/icons-material/Router";
|
||||
import StorageIcon from "@mui/icons-material/Storage";
|
||||
|
||||
type MenuEntry = {
|
||||
icon: ReactNode;
|
||||
@@ -64,7 +64,7 @@ const menuEntries: MenuEntry[] = [
|
||||
label: "DLG",
|
||||
to: "/distributed-ledger-gateway",
|
||||
disabled: false,
|
||||
}
|
||||
},
|
||||
];
|
||||
|
||||
const hideSidebar = tw`-translate-x-14 lg:-translate-x-64`;
|
||||
@@ -77,7 +77,7 @@ interface SidebarProps {
|
||||
export function Sidebar(props: SidebarProps) {
|
||||
const { show, onClose } = props;
|
||||
|
||||
const [activeMenuItem, setActiveMenuItem] = React.useState('/');
|
||||
const [activeMenuItem, setActiveMenuItem] = React.useState("/");
|
||||
|
||||
const handleMenuItemClick = (path: string) => {
|
||||
setActiveMenuItem(path);
|
||||
@@ -85,7 +85,8 @@ export function Sidebar(props: SidebarProps) {
|
||||
|
||||
return (
|
||||
<aside
|
||||
className={tw`${show ? showSidebar : hideSidebar
|
||||
className={tw`${
|
||||
show ? showSidebar : hideSidebar
|
||||
} z-9999 static left-0 top-0 flex h-screen w-14 flex-col overflow-x-hidden overflow-y-hidden bg-neutral-10 transition duration-150 ease-in-out dark:bg-neutral-2 lg:w-64`}
|
||||
>
|
||||
<div className="flex items-center justify-between gap-2 overflow-hidden px-0 py-5 lg:p-6">
|
||||
|
||||
Reference in New Issue
Block a user