From 8a5a5628b919e20d61e24aecc99c6dc0f922ce72 Mon Sep 17 00:00:00 2001 From: Sakura Knoll Date: Thu, 16 Jun 2022 21:46:03 +0900 Subject: [PATCH] Fix stigmata print page --- .../honkai3rd/prints/stigmata/[stigmataId].tsx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/pages/honkai3rd/prints/stigmata/[stigmataId].tsx b/src/pages/honkai3rd/prints/stigmata/[stigmataId].tsx index 359e13db..21149808 100644 --- a/src/pages/honkai3rd/prints/stigmata/[stigmataId].tsx +++ b/src/pages/honkai3rd/prints/stigmata/[stigmataId].tsx @@ -16,16 +16,19 @@ import SecondaryLabel from '../../../../components/atoms/SecondaryLabel' import StigmataCard from '../../../../components/molecules/StigmataCard' import { translate, useTranslation } from '../../../../lib/i18n' import { useRouter } from 'next/router' +import { SingleStigmataPageProps } from '../../../../components/pages/SingleStigmataPage' -type StigmataShowPageProps = StigmataSetProps +type StigmataShowPageProps = StigmataSetProps | SingleStigmataPageProps -const StigmataListPage = ({ - stigmataSet, - stigmataSetList, -}: StigmataShowPageProps) => { +const StigmataListPage = (props: StigmataShowPageProps) => { const { t } = useTranslation() const { locale } = useRouter() + if (props.type === 'single') { + return null + } + + const { stigmataSet, stigmataSetList } = props const stigmataSetName = translate( locale, { 'ko-KR': stigmataSet.krName },