From ae969baa6df3f5349319090ec616396aef6c5bbe Mon Sep 17 00:00:00 2001 From: Ren Amamiya <123083837+reyamir@users.noreply.github.com> Date: Sat, 1 Apr 2023 09:27:30 +0700 Subject: [PATCH] moved navigation to outside, remove columns folder --- src/components/{columns => }/navigator/chats.tsx | 0 src/components/{columns => }/navigator/index.tsx | 6 +++--- src/components/{columns => }/navigator/newsfeed.tsx | 0 src/layouts/withSidebar.tsx | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) rename src/components/{columns => }/navigator/chats.tsx (100%) rename src/components/{columns => }/navigator/index.tsx (53%) rename src/components/{columns => }/navigator/newsfeed.tsx (100%) diff --git a/src/components/columns/navigator/chats.tsx b/src/components/navigator/chats.tsx similarity index 100% rename from src/components/columns/navigator/chats.tsx rename to src/components/navigator/chats.tsx diff --git a/src/components/columns/navigator/index.tsx b/src/components/navigator/index.tsx similarity index 53% rename from src/components/columns/navigator/index.tsx rename to src/components/navigator/index.tsx index 324e1582..8dae9db8 100644 --- a/src/components/columns/navigator/index.tsx +++ b/src/components/navigator/index.tsx @@ -1,7 +1,7 @@ -import Chats from '@components/columns/navigator/chats'; -import Newsfeed from '@components/columns/navigator/newsfeed'; +import Chats from '@components/navigator/chats'; +import Newsfeed from '@components/navigator/newsfeed'; -export default function NavigatorColumn() { +export default function Navigation() { return (
{/* Newsfeed */} diff --git a/src/components/columns/navigator/newsfeed.tsx b/src/components/navigator/newsfeed.tsx similarity index 100% rename from src/components/columns/navigator/newsfeed.tsx rename to src/components/navigator/newsfeed.tsx diff --git a/src/layouts/withSidebar.tsx b/src/layouts/withSidebar.tsx index 77ccef46..8b3e8ff0 100644 --- a/src/layouts/withSidebar.tsx +++ b/src/layouts/withSidebar.tsx @@ -1,6 +1,6 @@ import AppHeader from '@components/appHeader'; -import NavigatorColumn from '@components/columns/navigator'; import MultiAccounts from '@components/multiAccounts'; +import Navigation from '@components/navigator'; export default function WithSidebarLayout({ children }: { children: React.ReactNode }) { return ( @@ -17,7 +17,7 @@ export default function WithSidebarLayout({ children }: { children: React.ReactN
- +
{children}