[feat] tray powerplan items and seperators
This commit is contained in:
@@ -7,7 +7,7 @@ import { Key } from "@react-types/shared"
|
||||
import { useToolStore } from "@/store/tool"
|
||||
import { useEffect } from "react"
|
||||
|
||||
const PowerPlans = [
|
||||
export const PowerPlans = [
|
||||
{
|
||||
id: "0",
|
||||
title: "其他",
|
||||
|
||||
@@ -55,7 +55,7 @@ const Avatar = () => {
|
||||
<img
|
||||
src={
|
||||
steam.currentUser()?.avatar
|
||||
? `data:image/png;base64,${steam.currentUser()?.avatar || ''}`
|
||||
? `data:image/png;base64,${steam.currentUser()?.avatar || ""}`
|
||||
: "/logo_square.png"
|
||||
}
|
||||
alt="avatar"
|
||||
@@ -72,9 +72,10 @@ const Avatar = () => {
|
||||
const SideBar = () => {
|
||||
const app = useAppStore()
|
||||
|
||||
void getVersion().then((Value) => {
|
||||
app.setVersion(Value)
|
||||
})
|
||||
if (typeof window !== "undefined")
|
||||
void getVersion().then((Value) => {
|
||||
app.setVersion(Value)
|
||||
})
|
||||
|
||||
return (
|
||||
<div
|
||||
|
||||
Reference in New Issue
Block a user