Skip to content

Commit

Permalink
Merge branch 'common/dev/feat_coin#1604' of github.com:innovationacad…
Browse files Browse the repository at this point in the history
…emy-kr/42cabi into common/dev/feat_coin#1604
  • Loading branch information
Z1Park committed Jun 11, 2024
2 parents 017d300 + 777b0bd commit 579c08d
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { useLocation } from "react-router-dom";
import { useRecoilValue } from "recoil";
import { useRecoilState } from "recoil";
import styled from "styled-components";
Expand All @@ -16,6 +17,8 @@ const LeftSectionNav = ({ closeLeftNav }: { closeLeftNav: () => void }) => {
const [currentFloorSection, setCurrentFloorSection] = useRecoilState<string>(
currentSectionNameState
);
const { pathname } = useLocation();
const isAdmin = pathname.includes("admin");

return (
<LeftNavOptionStyled>
Expand All @@ -40,7 +43,8 @@ const LeftSectionNav = ({ closeLeftNav }: { closeLeftNav: () => void }) => {
>
{section.sectionName}
<IconWrapperStyled>
{!isClubSection &&
{!isAdmin &&
!isClubSection &&
(section.alarmRegistered ? (
<FilledHeartIcon />
) : (
Expand Down

0 comments on commit 579c08d

Please sign in to comment.