Skip to content

Commit

Permalink
Merge pull request #48 from team-Ollie/15-feature-Calendar-Detail-Modal
Browse files Browse the repository at this point in the history
#29 fix: navbar z-index modal이랑 안겹치게 수정
  • Loading branch information
leejin-rho authored Jul 2, 2024
2 parents 36288f7 + f55edbc commit d84e06a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const NavBar = () => {
<>
<div className="w-full min-h-[4rem]" />
<div
className="flex flex-basis h-[4rem] w-full fixed inset-x-0 bottom-0 z-10"
className="flex flex-basis h-[4rem] w-full fixed inset-x-0 bottom-0 z-9"
style={{
borderTop: "0.5px solid rgba(112, 115, 124, 0.16)",
backgroundColor: "#ffffff",
Expand Down
6 changes: 3 additions & 3 deletions components/challenge/ChallengeCalendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ export default function ChallengeCalendar({
setClickedDate(clickedDate);
};

const disableAllDates = ({ date }) => {
return true;
const disableDates = ({ date, view }) => {
return view === "month";
};

const customTileContent = ({ date, view }: { date: Date; view: string }) => {
Expand Down Expand Up @@ -58,7 +58,7 @@ export default function ChallengeCalendar({
prev2Label={null}
minDate={new Date(2024, 4, 1)}
tileContent={customTileContent}
tileDisabled={disableAllDates}
tileDisabled={disableDates}
/>
</StyledCalendarWrapper>
</div>
Expand Down

0 comments on commit d84e06a

Please sign in to comment.