Skip to content

Commit

Permalink
fix: modify dormitory roommate UI
Browse files Browse the repository at this point in the history
  • Loading branch information
cjeongmin committed May 11, 2024
1 parent cea6fae commit ad0a089
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/app/pages/shared-posts-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,13 +177,15 @@ export function SharedPostsPage() {
<styles.SharedPostsMenu selected={selected} handleSelect={setSelected} />
<styles.createButtonRow>
<SharedPostFilters selected={selected} />
{selected === 'hasRoom' && (
{selected === 'hasRoom' || selected === 'dormitory' ? (
<Link href="/shared/writing">
<styles.createButton>작성하기</styles.createButton>
</Link>
) : (
<></>
)}
</styles.createButtonRow>
{selected === 'hasRoom' ? (
{selected === 'hasRoom' || selected === 'dormitory' ? (
<>
<styles.posts>
{prevSharedPosts != null
Expand Down

0 comments on commit ad0a089

Please sign in to comment.