diff --git a/public/assetsStatic/discordRpc.png b/public/assetsStatic/discordRpc.png new file mode 100644 index 0000000..61253ab Binary files /dev/null and b/public/assetsStatic/discordRpc.png differ diff --git a/src/App.jsx b/src/App.jsx index 9f249f6..4490c33 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -474,8 +474,7 @@ function App() { element={ } - // element={<>} - /> + > ( + + `${props.className} ${ + isActive ? props.activeClassName : "" + }` + } + > + {props.children} + + ), +}); + export const AppBar = () => { const [api] = useApi((state) => [state.api]); const navigate = useNavigate(); @@ -110,16 +130,15 @@ export const AppBar = () => { navigate("/login/index"); }; - const [librariesPopover, setLibrariesPopover] = useState(false); + const [librariesPopper, setLibrariesPopper] = useState(false); const librariesText = useRef(null); - const popoverEnter = (event) => { - if (anchorEl !== event.currentTarget) { - setLibrariesPopover(event.currentTarget); - } - }; - const popoverLeave = () => { - setLibrariesPopover(null); + const handlePopper = (event) => { + if (librariesPopper) { + setLibrariesPopper(null); + } else { + setLibrariesPopper(event.currentTarget); + } }; const [isBrowsingLibrary, setIsBrowsingLibrary] = useState(false); @@ -190,16 +209,70 @@ export const AppBar = () => { gap: "2.6em", }} > - + + {({ isActive }) => + isActive ? ( + + ) : ( + + ) + } + +