Skip to content

Commit

Permalink
Fix: 카테고리 isOpen 조건문 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
eunji-0623 committed Jul 15, 2024
1 parent 249c01a commit 2be8c1e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions components/KategorieDropdown/KategorieDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,12 @@ function KategorieDropdown() {
></Image>
)}
</div>
{isOpen ? (
{isOpen && (
<ul className="w-[800px] h-[260px] rounded-md bg-white absolute animate-slideDown bottom-[-266px] flex flex-col items-center justify-center shadow-kategorieDropdown t:w-full m:w-full">
{Object.values(Kategories).map((category) => (
<Kategorie key={category} name={category} setIsOpen={setIsOpen} />
))}
</ul>
) : (
<div></div>
)}
</div>
);
Expand Down

0 comments on commit 2be8c1e

Please sign in to comment.