feat: updates

This commit is contained in:
qier222 2022-06-11 00:19:07 +08:00
parent 4c90db789b
commit 196a974a64
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
21 changed files with 291 additions and 191 deletions

View file

@ -5,6 +5,23 @@ import useBreakpoint from '@/web/hooks/useBreakpoint'
import { useNavigate } from 'react-router-dom'
import { prefetchAlbum } from '@/web/api/hooks/useAlbum'
const sizes = {
small: {
sm: 'sm',
md: 'sm',
lg: 'sm',
xl: 'sm',
'2xl': 'md',
},
large: {
sm: 'md',
md: 'md',
lg: 'md',
xl: 'md',
'2xl': 'lg',
},
} as const
const CoverWall = ({
albums,
}: {
@ -12,22 +29,6 @@ const CoverWall = ({
}) => {
const navigate = useNavigate()
const breakpoint = useBreakpoint()
const sizes = {
small: {
sm: 'sm',
md: 'sm',
lg: 'sm',
xl: 'sm',
'2xl': 'md',
},
large: {
sm: 'md',
md: 'md',
lg: 'md',
xl: 'md',
'2xl': 'lg',
},
} as const
return (
<div