[fix] lint and building errors
This commit is contained in:
@@ -39,7 +39,7 @@ export default function Page() {
|
||||
steam.setCsDir(e.target.value)
|
||||
}}
|
||||
/>
|
||||
<p>当前用户64位SteamID:{steam.currentUser()?.steamID64}</p>
|
||||
<p>当前用户64位SteamID:{steam.currentUser()?.steam_id64}</p>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
|
||||
@@ -54,7 +54,7 @@ const SteamUsers = ({ className }: { className?: string }) => {
|
||||
{user.steam_id32}
|
||||
</Chip>
|
||||
<Chip size="sm" className="bg-zinc-200 dark:bg-zinc-800">
|
||||
{user.steam_id64?.toString()}
|
||||
{user.steam_id64.toString()}
|
||||
</Chip>
|
||||
{user.recent > 0 && (
|
||||
<Chip size="sm" color="primary">
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -100,7 +100,7 @@ const getUsers = async () => {
|
||||
setUsers(users)
|
||||
}
|
||||
|
||||
const selectUser = async (index: number) => {
|
||||
const selectUser = (index: number) => {
|
||||
const user = steamStore.state.users.at(index)
|
||||
console.log(index, user)
|
||||
if (user) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { AdvancedListItem } from "@/types/common"
|
||||
|
||||
export interface SteamUser extends AdvancedListItem {
|
||||
steam_id64: BigInt
|
||||
steam_id64: bigint
|
||||
steam_id32: number
|
||||
account_name: string
|
||||
persona_name: string
|
||||
|
||||
Reference in New Issue
Block a user