🐛 Fix some bugs

This commit is contained in:
LittleSheep 2025-01-04 22:48:33 +08:00
parent 38493829d5
commit bdd6d66e67
2 changed files with 7 additions and 3 deletions

View File

@ -76,8 +76,8 @@ export function CapAppBar() {
{userStore.account ? (
<Avatar sx={{ backgroundColor: 'transparent' }} src={getAttachmentUrl(userStore.account.avatar)} />
) : (
<Avatar sx={{ backgroundColor: 'transparent' }}>
<AccountCircle sx={{ color: theme.palette.text.primary }} className="dark:invert" />
<Avatar sx={{ backgroundColor: 'transparent', color: theme.palette.text.primary }}>
<AccountCircle />
</Avatar>
)}
</IconButton>

View File

@ -2,13 +2,17 @@ import { sni } from '@/services/network'
import { Container, Box, Typography, Alert, Collapse, Button, CircularProgress, Card, CardContent } from '@mui/material'
import { useRouter } from 'next/router'
import { useEffect, useState } from 'react'
import { checkAuthenticatedClient, redirectToLogin, SnAuthTicket } from '@/services/auth'
import ErrorIcon from '@mui/icons-material/Error'
import CloseIcon from '@mui/icons-material/Close'
import CheckIcon from '@mui/icons-material/Check'
import { SnAuthTicket } from '@/services/auth'
export default function AccountAuthorize() {
useEffect(() => {
if (!checkAuthenticatedClient()) redirectToLogin()
}, [])
const router = useRouter()
const [thirdClient, setThirdClient] = useState<any>(null)