Add account stuff

This commit is contained in:
Lncvrt committed 2026-05-08 13:51:52 -07:00
1 parent dfc9b32264
commit 9e14aeaa0c
5 files changed
+402 -4

No files matched your search

+17 -2
View File
@@ -9,7 +9,9 @@ import {
faDownload,
faGamepad,
faHexagonNodes,
faLayerGroup
faLayerGroup,
faUser,
faUserShield
} from '@fortawesome/free-solid-svg-icons'
import { faDiscord } from '@fortawesome/free-brands-svg-icons'
import { platform } from '@tauri-apps/plugin-os'
@@ -40,7 +42,9 @@ export default function Sidebar () {
linuxUseWine,
setManagingGame,
settings,
developerMode
developerMode,
accountName,
accountAdmin
} = useGlobal()
const pathname = usePathname()
@@ -222,6 +226,17 @@ export default function Sidebar () {
>
<FontAwesomeIcon icon={faCog} className='mr-1' /> Settings
</Link>
<Link
draggable={false}
href='/main/account'
className={`link ${pathname === '/main/account' ? 'active' : ''}`}
>
<FontAwesomeIcon
icon={accountAdmin ? faUserShield : faUser}
className='mr-1'
/>{' '}
{accountName ?? 'Account'}
</Link>
<button
onClick={() => openUrl('https://games.lncvrt.xyz/discord')}
className='link mr-auto'