fix settings button path on single user mode ()

Co-authored-by: timothycarambat <rambat1010@gmail.com>
This commit is contained in:
Sean Hatfield 2023-11-16 14:37:42 -08:00 committed by GitHub
parent f40309cfdb
commit 2c2543b4d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -274,9 +274,12 @@ export function SidebarMobileHeader() {
}
function SettingsButton() {
const { user } = useUser();
return (
<a
href={paths.settings.system()}
href={
!!user?.role ? paths.settings.system() : paths.settings.appearance()
}
className="transition-all duration-300 p-2 rounded-full text-white bg-sidebar-button hover:bg-menu-item-selected-gradient hover:border-slate-100 hover:border-opacity-50 border-transparent border"
>
<Wrench className="h-4 w-4" weight="fill" />