Fix stigmata print page
This commit is contained in:
@@ -16,16 +16,19 @@ import SecondaryLabel from '../../../../components/atoms/SecondaryLabel'
|
|||||||
import StigmataCard from '../../../../components/molecules/StigmataCard'
|
import StigmataCard from '../../../../components/molecules/StigmataCard'
|
||||||
import { translate, useTranslation } from '../../../../lib/i18n'
|
import { translate, useTranslation } from '../../../../lib/i18n'
|
||||||
import { useRouter } from 'next/router'
|
import { useRouter } from 'next/router'
|
||||||
|
import { SingleStigmataPageProps } from '../../../../components/pages/SingleStigmataPage'
|
||||||
|
|
||||||
type StigmataShowPageProps = StigmataSetProps
|
type StigmataShowPageProps = StigmataSetProps | SingleStigmataPageProps
|
||||||
|
|
||||||
const StigmataListPage = ({
|
const StigmataListPage = (props: StigmataShowPageProps) => {
|
||||||
stigmataSet,
|
|
||||||
stigmataSetList,
|
|
||||||
}: StigmataShowPageProps) => {
|
|
||||||
const { t } = useTranslation()
|
const { t } = useTranslation()
|
||||||
const { locale } = useRouter()
|
const { locale } = useRouter()
|
||||||
|
|
||||||
|
if (props.type === 'single') {
|
||||||
|
return null
|
||||||
|
}
|
||||||
|
|
||||||
|
const { stigmataSet, stigmataSetList } = props
|
||||||
const stigmataSetName = translate(
|
const stigmataSetName = translate(
|
||||||
locale,
|
locale,
|
||||||
{ 'ko-KR': stigmataSet.krName },
|
{ 'ko-KR': stigmataSet.krName },
|
||||||
|
|||||||
Reference in New Issue
Block a user