Skip to content

Commit

Permalink
fix: ヘッダーの修正
Browse files Browse the repository at this point in the history
  • Loading branch information
appare45 committed Apr 19, 2024
1 parent 0b2feb2 commit 7d67eda
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/common_components/header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export const Header: FC = () => {
display: "block",
},
})}>
{showMobileMenu && (
{userInfo?.owned_project_id && showMobileMenu && (
<MobileMenu
menu={menu}
isCommittee={["committee", "committee_operator", "administrator"].includes(userInfo?.role ?? "")}
Expand All @@ -154,7 +154,7 @@ export const Header: FC = () => {
height: "100%",
},
})}>
{user ? (
{userInfo?.owned_project_id ? (
<button
className={css({
display: "flex",
Expand Down Expand Up @@ -242,7 +242,7 @@ export const Header: FC = () => {
</nav>
)}
</div>
{user && <HeaderNavigation menu={menu} />}
{userInfo?.owned_project_id && <HeaderNavigation menu={menu} />}
</header>
);
};

0 comments on commit 7d67eda

Please sign in to comment.