feat: updates

This commit is contained in:
qier222 2022-05-29 17:53:27 +08:00
parent ffcc60b793
commit dd5361b8c4
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
106 changed files with 11989 additions and 4143 deletions

View file

@ -1,7 +1,7 @@
import { state } from '@/web/store'
import { changeAccentColor } from '@/web/utils/theme'
import { useSnapshot } from 'valtio'
import cx from 'classnames'
import { cx } from '@emotion/css'
const AccentColor = () => {
const colors = {

View file

@ -1,9 +1,9 @@
import Avatar from '@/web/components/Avatar'
import SvgIcon from '@/web/components/SvgIcon'
import useUser from '@/web/hooks/useUser'
import Icon from '@/web/components/Icon'
import useUser from '@/web/api/hooks/useUser'
import Appearance from './Appearance'
import UnblockNeteaseMusic from './UnblockNeteaseMusic'
import cx from 'classnames'
import { cx } from '@emotion/css'
import { useState } from 'react'
import toast from 'react-hot-toast'
@ -38,7 +38,7 @@ const UserCard = () => {
className='btn-pressed-animation btn-hover-animation flex items-center px-4 py-3 text-lg font-medium text-gray-600 after:rounded-xl after:bg-black/[.06] dark:text-gray-300 dark:after:bg-white/5'
>
{/* TODO: 画登入登出图标 */}
<SvgIcon name='x' className='mr-1 h-6 w-6' />
<Icon name='x' className='mr-1 h-6 w-6' />
{user?.profile ? '登出' : '登录'}
</button>
</div>