diff --git a/client/public/favicon.ico b/client/public/favicon.ico index 9bcefa3..07d23cb 100644 Binary files a/client/public/favicon.ico and b/client/public/favicon.ico differ diff --git a/client/public/logo192.png b/client/public/logo192.png index 0387f8d..aa44dff 100644 Binary files a/client/public/logo192.png and b/client/public/logo192.png differ diff --git a/client/public/logo512.png b/client/public/logo512.png index aa91943..63b9b7d 100644 Binary files a/client/public/logo512.png and b/client/public/logo512.png differ diff --git a/client/src/components/auth/UserDropdown.tsx b/client/src/components/auth/UserDropdown.tsx index 6ad7ce1..128496d 100644 --- a/client/src/components/auth/UserDropdown.tsx +++ b/client/src/components/auth/UserDropdown.tsx @@ -1,14 +1,13 @@ import React, { useRef, useState } from 'react'; -import { LogOut, User, Globe } from 'lucide-react'; +import { LogOut, User } from 'lucide-react'; import { useAuth } from '../../hooks/useAuth'; import { useOutsideClick } from '../../hooks/useOutsideClick'; -import { Link, useLocation } from 'react-router-dom'; +import { Link } from 'react-router-dom'; export const UserDropdown: React.FC = () => { const [isOpen, setIsOpen] = useState(false); const dropdownRef = useRef(null); const { user, logout } = useAuth(); - const location = useLocation(); if (user?.id === 0) { return (<>) @@ -16,19 +15,6 @@ export const UserDropdown: React.FC = () => { useOutsideClick(dropdownRef, () => setIsOpen(false)); - const isPublicView = location.pathname.startsWith('/public'); - const switchViewProps = isPublicView - ? { - to: "/", - icon: , - text: "My snippets" - } - : { - to: "/public/snippets", - icon: , - text: "Public snippets" - }; - if (user) { return (
@@ -46,15 +32,6 @@ export const UserDropdown: React.FC = () => { className="absolute right-0 mt-1 w-48 bg-light-surface dark:bg-dark-surface rounded-md shadow-lg border border-light-border dark:border-dark-border py-1 z-50" > - setIsOpen(false)} - className="w-full px-4 py-2 text-sm text-left text-light-text dark:text-dark-text hover:bg-light-hover - dark:hover:bg-dark-hover flex items-center gap-2" - > - {switchViewProps.icon} - {switchViewProps.text} - + +
+ + ); +}; + +export default ViewSwitch; diff --git a/media/logo.webp b/media/logo.webp index cff24ec..540d3e3 100644 Binary files a/media/logo.webp and b/media/logo.webp differ