Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
imhson committed Oct 18, 2024
1 parent 34867b2 commit bd137d8
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/pages/events/ava-2024/map/manga-room/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,8 @@ export default function Page() {
setSelected(data?.data?.data?.story_manga?.[0])
}
}, [data?.data?.data?.story_manga])
if (!data) {
return null
}
const mangas = data.data?.data?.story_manga
const count = Math.ceil((data.data?.data?.story_manga_aggregate?.aggregate?.count || 1) / 20)
const mangas = data?.data?.data?.story_manga
const count = Math.ceil((data?.data?.data?.story_manga_aggregate?.aggregate?.count || 1) / 20)
return (
<>
<div
Expand Down Expand Up @@ -143,8 +140,8 @@ export default function Page() {
</div>
{width < 1024 && showModal && (
<>
<div className='fixed inset-0' onClick={() => setShowModal(false)}></div>
<div className='fixed bottom-0 inset-x-0 z-10'>
<div className='fixed inset-0 bg-black/80 z-40' onClick={() => setShowModal(false)}></div>
<div className='fixed bottom-0 inset-x-0 z-50'>
<div className='absolute -top-4 right-6' onClick={() => setShowModal(false)}>
<svg
width='45'
Expand Down

0 comments on commit bd137d8

Please sign in to comment.