Skip to content

Commit

Permalink
quick dropdown menu fix, wasnt closing when clicking settings
Browse files Browse the repository at this point in the history
  • Loading branch information
NicBG committed Mar 3, 2024
1 parent 0b95243 commit 11f5f5d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion lvlgg_frontend/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
background-position: center;
background-size: cover;
background-repeat: no-repeat;
font-size: 15px;
font-size: 12px;
font-family: OCR A Std, monospace;
color: #02f2ff;
}
Expand Down
4 changes: 2 additions & 2 deletions lvlgg_frontend/src/Components/Navbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
position: absolute;
top: 100%;
right: -40px;
background-color: #07264d;
background-color: #020913;
min-width: 160px;
z-index: 50;
}
Expand All @@ -120,7 +120,7 @@
border: none;
outline: none;
cursor: pointer;
color: #16ace7;
color: #02f2ff;
}

.dropdown-content button:hover {
Expand Down
4 changes: 1 addition & 3 deletions lvlgg_frontend/src/Components/Navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,7 @@ const handleSignOut = () => {
{isDropdownOpen && (
<div className="dropdown-content">
<Link to='/settings'>
<button>
Settings
</button>
<button onClick={() => { handleDropDown(); }}>Settings</button>
</Link>
<button onClick={() => { handleSignOut(); }}>Sign Out</button>
</div>
Expand Down
5 changes: 1 addition & 4 deletions lvlgg_frontend/src/Components/Pages/Settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ const Settings = () => {
return (
<div className="settings">
<div className='rectangle'></div>

<h1>Account Settings</h1>
<div className="input-wrapper">
<input
Expand Down Expand Up @@ -169,9 +168,7 @@ const Settings = () => {
</div>
<button className="settings-btn-delete" onClick={handleDeleteConfirmation}>
Delete Account
</button>


</button>
</div>
);
};
Expand Down

0 comments on commit 11f5f5d

Please sign in to comment.