Skip to content

Commit

Permalink
fix: 스티커뷰에서 리스트뷰로 이동 금지
Browse files Browse the repository at this point in the history
  • Loading branch information
eunbeann committed Jan 19, 2024
1 parent 2048211 commit 4a18bd3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Detail/components/LecueNoteLIstHeader/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,26 @@ interface LecueNoteListHeaderProps {
backgroundColor: string;
isZigZagView: boolean;
buttonOnClick: () => void;
isEditable: boolean;
}

function LecueNoteListHeader({
noteNum,
backgroundColor,
isZigZagView,
buttonOnClick,
isEditable,
}: LecueNoteListHeaderProps) {
return (
<S.LecueNoteListHeaderWrapper backgroundColor={backgroundColor}>
<S.LecueNoteCountBox
backgroundColor={backgroundColor}
>{`${noteNum}개`}</S.LecueNoteCountBox>
<S.LecueNoteRenderModeButton type="button" onClick={buttonOnClick}>
<S.LecueNoteRenderModeButton
type="button"
onClick={buttonOnClick}
disabled={isEditable}
>
{isZigZagView ? <BtnFloatingList /> : <BtnFloatingPostit />}
</S.LecueNoteRenderModeButton>
</S.LecueNoteListHeaderWrapper>
Expand Down
1 change: 1 addition & 0 deletions src/Detail/components/LecueNoteListContainer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ function LecueNoteListContainer(props: LecueNoteListContainerProps) {
backgroundColor={backgroundColor}
>
<LecueNoteListHeader
isEditable={isEditable}
noteNum={noteNum}
backgroundColor={backgroundColor}
isZigZagView={isZigZagView}
Expand Down

0 comments on commit 4a18bd3

Please sign in to comment.