Skip to content

Commit

Permalink
Merge pull request #26 from YaleComputerSociety/profie_dropdown
Browse files Browse the repository at this point in the history
Fixed profile dropdown
  • Loading branch information
lorenss-m committed Apr 8, 2024
2 parents c967196 + c4b43ed commit 76c1a27
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/navbar/MeDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ function DropdownContent({
onClick={() => {
setIsExpanded(false);
}}
style={{
display: isExpanded ? "flex" : "none",
}}
>
<Collapse in={isExpanded}>
{/* This wrapper div is important for making the collapse animation
Expand Down Expand Up @@ -138,7 +141,7 @@ function MeDropdown() {
/>
</button>
<DropdownContent
isExpanded={false}
isExpanded={isComponentVisible}
setIsExpanded={setIsComponentVisible}
/>
</div>
Expand Down

0 comments on commit 76c1a27

Please sign in to comment.