Skip to content

Commit

Permalink
feat: unify settings page
Browse files Browse the repository at this point in the history
  • Loading branch information
gventuri committed Sep 25, 2024
1 parent 36c4c06 commit 794814c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 26 deletions.
22 changes: 5 additions & 17 deletions frontend/src/components/ui/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,12 @@ const Navbar: React.FC = () => {
</button>
</div>
<div className="relative">
<button
onClick={() => setIsUserMenuOpen(!isUserMenuOpen)}
className="flex items-center focus:outline-none"
<Link
href="/settings"
className="flex items-center text-sm text-gray-700"
>
<User className="w-5 h-5 text-gray-500" />
<ChevronDown className="w-4 h-4 ml-1 text-gray-500" />
</button>
{isUserMenuOpen && (
<div className="absolute right-0 mt-2 w-48 bg-white rounded-md shadow-lg py-1">
<Link
href="/user/settings"
className="flex items-center px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"
>
<Settings className="w-5 h-5 mr-2" />
Manage settings
</Link>
</div>
)}
<Settings className="w-5 h-5 mr-2" />
</Link>
</div>
</div>
</header>
Expand Down
9 changes: 0 additions & 9 deletions frontend/src/components/ui/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,6 @@ const Sidebar: React.FC = () => {
Contact us
</a>
</li>
<li className="mb-10">
<Link
href="/settings"
className="flex items-center text-gray-700 hover:text-priamry-hover"
>
<Settings className="w-5 h-5 mr-2" />
Settings
</Link>
</li>
<li className="flex justify-between text-sm text-gray-500">
<a
href="https://sinaptik.notion.site/Terms-of-Service-6531411a9dfe4f1b9cb6045e93e9723c?pvs=4"
Expand Down

0 comments on commit 794814c

Please sign in to comment.