From c9eb21bc8f9cc15c196bb5ff67f491fe9648610e Mon Sep 17 00:00:00 2001 From: takecchi Date: Fri, 22 Mar 2024 01:12:18 +0900 Subject: [PATCH] =?UTF-8?q?(=E3=82=B9=E3=83=9E=E3=83=9B)=E9=9D=9E=E3=83=AD?= =?UTF-8?q?=E3=82=B0=E3=82=A4=E3=83=B3=E7=8A=B6=E6=85=8B=E3=81=A7=E3=82=82?= =?UTF-8?q?=E3=83=A1=E3=83=8B=E3=83=A5=E3=83=BC=E3=82=92=E8=A1=A8=E7=A4=BA?= =?UTF-8?q?=E3=81=99=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB=20(#380)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Issue - Github Issue: #379 ## 変更内容 - ログイン関係なくメニューを表示するよう変更 @coderabbitai: ignore --- .../(menu)/_components/menu/BottomMenu.tsx | 69 +++++++++---------- 1 file changed, 32 insertions(+), 37 deletions(-) diff --git a/src/app/(menu)/_components/menu/BottomMenu.tsx b/src/app/(menu)/_components/menu/BottomMenu.tsx index dbae8bad..39111757 100644 --- a/src/app/(menu)/_components/menu/BottomMenu.tsx +++ b/src/app/(menu)/_components/menu/BottomMenu.tsx @@ -1,7 +1,6 @@ 'use client'; import MobileBottomMenuLinkItem from '@/app/(menu)/_components/menu/elements/MobileBottomMenuLinkItem'; -import { useProfile } from '@/swr/client/account'; import { Home, HomeOutlined, @@ -49,44 +48,40 @@ const Spacer = styled('div')` `; export default function BottomMenu() { - const { data: profile } = useProfile(); - return ( <> - {profile && } - {profile && ( - - } - activeIcon={} - href={'/home'} - label={'ホーム'} - /> - } - activeIcon={} - href={'/search'} - label={'検索'} - /> - } - href={'/public'} - label={'グローバル'} - /> - } - activeIcon={} - href={'/notifications'} - label={'通知'} - /> - } - activeIcon={} - href={'/settings'} - label={'設定'} - /> - - )} + + + } + activeIcon={} + href={'/home'} + label={'ホーム'} + /> + } + activeIcon={} + href={'/search'} + label={'検索'} + /> + } + href={'/public'} + label={'グローバル'} + /> + } + activeIcon={} + href={'/notifications'} + label={'通知'} + /> + } + activeIcon={} + href={'/settings'} + label={'設定'} + /> + ); }