diff --git a/src/app/(with-header)/chuni/music/[musicId]/music-detail.tsx b/src/app/(with-header)/chuni/music/[musicId]/music-detail.tsx index 6f52673..bf32dec 100644 --- a/src/app/(with-header)/chuni/music/[musicId]/music-detail.tsx +++ b/src/app/(with-header)/chuni/music/[musicId]/music-detail.tsx @@ -11,6 +11,7 @@ import { HeartIcon as SolidHeartIcon } from '@heroicons/react/24/solid'; import { HeartIcon as OutlineHeartIcon } from '@heroicons/react/24/outline'; import { useState } from 'react'; import { useErrorModal } from '@/components/error-modal'; +import { useUser } from '@/helpers/use-user'; type ChuniMusicDetailProps = { music: ChuniMusic[], @@ -22,6 +23,7 @@ export const ChuniMusicDetail = ({ music, playlog }: ChuniMusicDetailProps) => { const [favorite, setFavorite] = useState(music[0].favorite); const [pendingFavorite, setPendingFavorite] = useState(false); const setError = useErrorModal(); + const user = useUser(); return (
{ { music[0].title } { music[0].artist } { music[0].genre } - + }
); diff --git a/src/app/(with-header)/chuni/music/music-list.tsx b/src/app/(with-header)/chuni/music/music-list.tsx index 5a15cb4..815ed29 100644 --- a/src/app/(with-header)/chuni/music/music-list.tsx +++ b/src/app/(with-header)/chuni/music/music-list.tsx @@ -16,6 +16,7 @@ import { Ticker, TickerHoverProvider } from '@/components/ticker'; import { useErrorModal } from '@/components/error-modal'; import { CHUNI_FILTER_DIFFICULTY, CHUNI_FILTER_FAVORITE, CHUNI_FILTER_GENRE, CHUNI_FILTER_LAMP, CHUNI_FILTER_LEVEL, CHUNI_FILTER_RATING, CHUNI_FILTER_SCORE, CHUNI_FILTER_WORLDS_END_STARS, CHUNI_FILTER_WORLDS_END_TAG } from '@/helpers/chuni/filter'; import { WindowScrollerGrid } from '@/components/window-scroller-grid'; +import { useUser } from '@/helpers/use-user'; export type ChuniMusicListProps = { music: ChuniMusic[] @@ -51,6 +52,8 @@ const MusicGrid = ({ music, size, setMusicList, fullMusicList }: ChuniMusicListP setMusicList: (m: typeof music) => void, fullMusicList: ChuniMusicListProps['music'] }) => { + const user = useUser(); + let itemWidth = 0; let itemHeight = 0; let itemClass = ''; @@ -90,7 +93,7 @@ const MusicGrid = ({ music, size, setMusicList, fullMusicList }: ChuniMusicListP } - + }
{size === 'lg' &&