Skip to content

Commit e2c2e01

Browse files
committed
fix: [FN-341] 그룹 멤버일 경우 카드셋 생성 가능하도록 수정
1 parent c043d1e commit e2c2e01

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/features/group-detail/components/group-cardset-section.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ type CardSetItem = {
2727
type Props = {
2828
groupId: number;
2929
cardSets: CardSetItem[];
30-
hasManagePermission: boolean;
30+
isMember: boolean;
3131
hasNextPage: boolean;
3232
isFetchingNextPage: boolean;
3333
onFetchNextPage: () => void;
@@ -36,7 +36,7 @@ type Props = {
3636
export const GroupCardsetSection = ({
3737
groupId,
3838
cardSets,
39-
hasManagePermission,
39+
isMember,
4040
hasNextPage,
4141
isFetchingNextPage,
4242
onFetchNextPage,
@@ -45,7 +45,7 @@ export const GroupCardsetSection = ({
4545
<section>
4646
<div className="mb-4 flex items-center justify-between">
4747
<h2 className="text-2xl font-bold">카드셋</h2>
48-
{hasManagePermission && (
48+
{isMember && (
4949
<CardsetCreateDialog
5050
groupId={groupId}
5151
renderTrigger={

src/pages/group-detail.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ const GroupDetailPage = ({ id }: Props) => {
112112
<GroupCardsetSection
113113
groupId={groupId}
114114
cardSets={cardSets}
115-
hasManagePermission={isOwner}
115+
isMember={isMember}
116116
hasNextPage={hasNextPage}
117117
isFetchingNextPage={isFetchingNextPage}
118118
onFetchNextPage={fetchNextPage}

0 commit comments

Comments
 (0)