Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
imhson committed Oct 21, 2024
1 parent 02cec24 commit 1b15207
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
9 changes: 7 additions & 2 deletions src/pages/events/ava-2024/map/character/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,13 @@ import { eventService } from 'src/services/eventService'
import { ModalContext } from 'src/context/modals'
import { shorten } from 'src/utils'
import Tooltip from 'components/Tooltip'

export default function Event() {
export default function Page(props) {
if (props.justHead) {
return <></>
}
return <Event {...props} />
}
function Event() {
const { locale } = useRouter()
const { t } = useTranslation()
const { account } = useContext(Context)
Expand Down
8 changes: 5 additions & 3 deletions src/pages/events/ava-2024/map/manga-room/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default function Page() {
<div className='lg:py-10'>
<div className='grid grid-cols-1 lg:grid-cols-[22fr_11fr] mt-4 gap-8 min-h-[1000px] relative'>
<div className='shrink-0 w-full'>
<div className='flex justify-between relative z-20 items-center gap-10 h-10 lg:hidden mb-5 flex-row-reverse'>
<div className='flex justify-end relative z-20 items-center gap-10 h-10 lg:hidden mb-5 flex-row-reverse'>
<div className='w-[8.5%] mr-10'>
<RuleAndAward />
</div>
Expand Down Expand Up @@ -131,7 +131,7 @@ export default function Page() {
)}
</div>
<div className='sticky top-[12vh] h-fit hidden lg:block'>
<div className='flex justify-between relative z-10 items-center gap-10 h-10'>
<div className='flex justify-end relative z-10 items-center gap-10 h-10'>
<div className='w-[10.5%]'>
<RuleAndAward />
</div>
Expand Down Expand Up @@ -299,7 +299,9 @@ const Content = ({ selected }) => {
size='sm'
className='w-full'
onClick={() =>
isMobile ? push(`/comic/${selected.manga.slug}`) : push(`/comic/${selected.manga.slug}/chapter/1`)
isMobile
? window.open(`/comic/${selected.manga.slug}`, '_blank')
: window.open(`/comic/${selected.manga.slug}/chapter/1`, '_blank')
}>
{t('Read manga')}
</Button>
Expand Down
8 changes: 7 additions & 1 deletion src/pages/events/ava-2024/map/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,13 @@ import { useRouter } from 'next/router'
import { useEffect, useRef, useState } from 'react'
import { useTranslation } from 'react-i18next'
import { useLocalStorage } from 'usehooks-ts'
export default function Event() {
export default function Page(props) {
if (props.justHead) {
return <></>
}
return <Event {...props} />
}
function Event() {
const { locale, push } = useRouter()
const { t } = useTranslation()
const router = useRouter()
Expand Down

0 comments on commit 1b15207

Please sign in to comment.