From 07e7b41a7a5e4d49028893bf25397c684b44cd00 Mon Sep 17 00:00:00 2001 From: "AURA-QUANNN7\\QUANNN7" Date: Tue, 11 Jun 2024 16:34:03 +0700 Subject: [PATCH] fix --- src/components/pages/homepage/comic2.tsx | 70 ++++++++++-------------- 1 file changed, 29 insertions(+), 41 deletions(-) diff --git a/src/components/pages/homepage/comic2.tsx b/src/components/pages/homepage/comic2.tsx index 51206c91..3e43a71d 100644 --- a/src/components/pages/homepage/comic2.tsx +++ b/src/components/pages/homepage/comic2.tsx @@ -57,25 +57,24 @@ export default function Comic2(props: IComic) { )} -
- -

{props[locale].title}

-
- {t('by')}{' '} - {props.authors.map((author, index) => ( - - , - - {author.slug ? ( -
{t(author.name)}
- ) : ( - t(author.name) - )} -
-
- ))} -
+
+

{props[locale].title}

+
+ {t('by')}{' '} + {props.authors.map((author, index) => ( + + , + + {author.slug ? ( +
{t(author.name)}
+ ) : ( + t(author.name) + )} +
+
+ ))} +
{props.views} @@ -86,31 +85,20 @@ export default function Comic2(props: IComic) {
-
{props[locale].description}
-
- {props.status.text != 'Ongoing' && ( - {t(props.status.text)} - )} +
{props[locale].description}
+
+
{!!props.latestChap.number && ( -
- {t('Latest')}:{' '} - - {t('Chap')} #{props.latestChap.number} - +
+ {t('Latest')}: {t('Chap')} #{props.latestChap.number}
)}