Skip to content

Commit

Permalink
feat: 익명/실명 UI 구현 완료
Browse files Browse the repository at this point in the history
  • Loading branch information
ojj1123 committed Oct 9, 2024
1 parent 64c5603 commit 7747140
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
6 changes: 3 additions & 3 deletions pages/square/secret/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ function SecretSquareDetailPage() {
<OrganizerBar
avatar={
<OrganizerBar.Avatar
avatar={{ bg: 7, type: 0 }}
uid={squareDetail.isAnonymous ? squareDetail.uid : ""}
image={squareDetail.isAnonymous ? squareDetail.profileImage : ""}
avatar={squareDetail.isAnonymous ? { bg: 7, type: 0 } : undefined}
uid={squareDetail.isAnonymous ? "" : squareDetail.uid}
image={squareDetail.isAnonymous ? "" : squareDetail.profileImage}
isLink={!squareDetail.isAnonymous}
size="md"
/>
Expand Down
7 changes: 1 addition & 6 deletions pages/square/secret/writing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -244,12 +244,7 @@ function SquareWritingPage() {
투표
</Button>
</div>
<Checkbox
{...register("isAnonymous", {
required: true,
})}
colorScheme="mintTheme"
>
<Checkbox {...register("isAnonymous")} colorScheme="mintTheme">
익명
</Checkbox>
</WritingNavigation>
Expand Down

0 comments on commit 7747140

Please sign in to comment.