Skip to content

Commit

Permalink
refactor: remove fragment tag
Browse files Browse the repository at this point in the history
  • Loading branch information
cjeongmin committed May 11, 2024
1 parent ad0a089 commit 8a61adc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/app/pages/shared-posts-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,10 @@ export function SharedPostsPage() {
<styles.SharedPostsMenu selected={selected} handleSelect={setSelected} />
<styles.createButtonRow>
<SharedPostFilters selected={selected} />
{selected === 'hasRoom' || selected === 'dormitory' ? (
{(selected === 'hasRoom' || selected === 'dormitory') && (
<Link href="/shared/writing">
<styles.createButton>작성하기</styles.createButton>
</Link>
) : (
<></>
)}
</styles.createButtonRow>
{selected === 'hasRoom' || selected === 'dormitory' ? (
Expand Down

0 comments on commit 8a61adc

Please sign in to comment.