From 237208e9a1a21dd4216a8056124a6c3df2e00427 Mon Sep 17 00:00:00 2001 From: imhson Date: Tue, 5 Sep 2023 14:12:41 +0700 Subject: [PATCH] fix --- src/assets/images/icons/share.svg | 4 +- src/components/Card/index.tsx | 4 +- src/pages/artist/[artist]/artist.tsx | 145 ++++++++++++++------------- 3 files changed, 79 insertions(+), 74 deletions(-) diff --git a/src/assets/images/icons/share.svg b/src/assets/images/icons/share.svg index db374178..eb81a1a9 100644 --- a/src/assets/images/icons/share.svg +++ b/src/assets/images/icons/share.svg @@ -1,6 +1,6 @@ - - + + diff --git a/src/components/Card/index.tsx b/src/components/Card/index.tsx index 0e5ad9e1..bc2d8694 100644 --- a/src/components/Card/index.tsx +++ b/src/components/Card/index.tsx @@ -13,7 +13,7 @@ export default function Card({ }) { return (
-
+
{title} @@ -34,7 +34,7 @@ export function SubCard({ }) { return (
-
+
{title} diff --git a/src/pages/artist/[artist]/artist.tsx b/src/pages/artist/[artist]/artist.tsx index f28a47b3..ab0477b6 100644 --- a/src/pages/artist/[artist]/artist.tsx +++ b/src/pages/artist/[artist]/artist.tsx @@ -73,7 +73,7 @@ export default function Artist({ artistDetail }) { <>
{t('DoB')}:
-
{t('Total subscribers')}:
+
{t('Total subscribers')}:
{locale == 'vn' @@ -122,83 +122,88 @@ export default function Artist({ artistDetail }) {
{t('Bio')}:
-
{t('Total subscribers')}:
+
{t('Total subscribers')}:
+
{t('Gender')}:
{artist?.bio}
-
- -
- {artist.comics?.slice(0, 2)?.map((comic, index) => ( - -
- -
-
- -
-
- ))} -
-
-
-
- -
- {artist.collections.slice(currentPage * 2 - 2, currentPage * 2).map((collection, index) => ( - -
{collection.name}
- - - + {!!artist.comics.length && ( +
+ +
+ {artist.comics?.slice(0, 2)?.map((comic, index) => ( + +
+
- }> -
- {collection.tokens.map((token, index) => ( - -
-
- -
- {t('View on SEEKHYPE')} +
+ +
+ + ))} +
+ +
+ )} + {!!artist.collections.length && ( +
+ +
+ {artist.collections.slice(currentPage * 2 - 2, currentPage * 2).map((collection, index) => ( + +
{collection.name}
+ + + +
+ }> +
+ {collection.tokens.map((token, index) => ( + +
+
+ +
+ {t('View on SEEKHYPE')} +
+
+
+ {token.name}
-
- {token.name} -
-
- - ))} -
- - ))} - {!!artist.collections.length && ( - - )} -
- -
+ + ))} +
+ + ))} + {!!artist.collections.length && ( + + )} +
+ +
+ )}
)