From b1cacc06a118a4dbc745b6d7aa67d172c10ab4f9 Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Wed, 19 Jun 2024 13:05:45 +0300 Subject: [PATCH] rename AppNavigation -> AppMenu --- apps/web/Components/Layout/{Navigation.tsx => Menu.tsx} | 2 +- apps/web/Components/Layout/index.jsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename apps/web/Components/Layout/{Navigation.tsx => Menu.tsx} (97%) diff --git a/apps/web/Components/Layout/Navigation.tsx b/apps/web/Components/Layout/Menu.tsx similarity index 97% rename from apps/web/Components/Layout/Navigation.tsx rename to apps/web/Components/Layout/Menu.tsx index 6ac428e..d107b4e 100644 --- a/apps/web/Components/Layout/Navigation.tsx +++ b/apps/web/Components/Layout/Menu.tsx @@ -49,7 +49,7 @@ const items: MenuProps['items'] = [ }, ]; -export function AppNavigation() { +export function AppMenu() { const { pathname } = useRouter(); return ( diff --git a/apps/web/Components/Layout/index.jsx b/apps/web/Components/Layout/index.jsx index 86873dc..a0edc0e 100644 --- a/apps/web/Components/Layout/index.jsx +++ b/apps/web/Components/Layout/index.jsx @@ -1,5 +1,5 @@ import Header from './Header'; -import { AppNavigation } from './Navigation'; +import { AppMenu } from './Navigation'; import { min } from '@/styles/mq'; import styled from 'styled-components'; @@ -15,7 +15,7 @@ export default function Layout({ children, user }) { return ( <>
- {user?.admin ? : false} + {user?.admin ? : false}
{children}
);