diff --git a/src/components/pages/chapter/comicDetail.tsx b/src/components/pages/chapter/comicDetail.tsx
index 8e1c9e31..98f2ef3e 100644
--- a/src/components/pages/chapter/comicDetail.tsx
+++ b/src/components/pages/chapter/comicDetail.tsx
@@ -20,6 +20,7 @@ import { Tab } from '@headlessui/react'
import Ninja from 'images/ninja-2.svg'
import Link from 'next/link'
import { CHAPTER_STATUS } from 'src/constants/chapter.constant'
+import NFTList from './nftList'
export default function ComicDetail({
data,
@@ -298,10 +299,14 @@ export default function ComicDetail({
/>
-
+ {!!data.collections.length ? (
+
+ ) : (
+
+ )}
diff --git a/src/components/pages/chapter/nftList.tsx b/src/components/pages/chapter/nftList.tsx
index 0872853e..30840cd1 100644
--- a/src/components/pages/chapter/nftList.tsx
+++ b/src/components/pages/chapter/nftList.tsx
@@ -6,15 +6,15 @@ import { useTranslation } from 'react-i18next'
import { SubCard } from 'components/Card'
import ShareIcon from 'images/icons/share.svg'
-export default function NFTList({ collections }) {
+export default function NFTList({ collections, theme }) {
const { t } = useTranslation()
const seekhypeBaseUrl = new URL(getConfig().SEEKHYPE_URL).origin
- console.log(collections)
return (
- <>
+
{collections?.map((collection, index) => (
{collection.name}
@@ -23,7 +23,23 @@ export default function NFTList({ collections }) {
title={t('View more on SEEKHYPE')}
href={`${seekhypeBaseUrl}/collection/${collection.address}`}
className='cursor-pointer'>
-
+
}>
@@ -34,7 +50,7 @@ export default function NFTList({ collections }) {
href={`${seekhypeBaseUrl}/nft/${collection.address}/${token.id}`}
key={index}
className='p-[5px] lg:p-5 [&:hover_.view-on-seekhype]:translate-y-0'>
-
+
-
@@ -56,6 +75,6 @@ export default function NFTList({ collections }) {
))}
- >
+
)
}
diff --git a/src/components/pages/homepage/comic.tsx b/src/components/pages/homepage/comic.tsx
index bc12cfae..58864166 100644
--- a/src/components/pages/homepage/comic.tsx
+++ b/src/components/pages/homepage/comic.tsx
@@ -16,29 +16,25 @@ export default function Comic(props: IComic) {
return (
-
+
-
+
-
+
@@ -88,7 +84,7 @@ export default function Comic(props: IComic) {
{props.likes.toLocaleString('en-US')} {props.likes > 1 ? t('likes') : t('like')}
-
{props[locale].description}
+
{props[locale].description}
{!!props.latestChap.number && (
diff --git a/src/components/pages/homepage/trendingComic.tsx b/src/components/pages/homepage/trendingComic.tsx
index 8c3d928c..1fa39d71 100644
--- a/src/components/pages/homepage/trendingComic.tsx
+++ b/src/components/pages/homepage/trendingComic.tsx
@@ -42,7 +42,7 @@ export default function TrendingComic(props: IComic) {
}`}
/>
-
+
chapters: IChapter[]
+ collections: any[]
isSubscribe?: boolean
}
diff --git a/src/pages/artist/[artist]/artist.tsx b/src/pages/artist/[artist]/artist.tsx
index 2de3deb9..69d0643b 100644
--- a/src/pages/artist/[artist]/artist.tsx
+++ b/src/pages/artist/[artist]/artist.tsx
@@ -32,7 +32,7 @@ export default function Artist({ artistDetail }) {
if (!artist) return <>>
return (
<>
-
+
diff --git a/src/pages/comic/[comicId]/chapter/[chapterNumber]/chapter.tsx b/src/pages/comic/[comicId]/chapter/[chapterNumber]/chapter.tsx
index f1c40156..fdb44eba 100644
--- a/src/pages/comic/[comicId]/chapter/[chapterNumber]/chapter.tsx
+++ b/src/pages/comic/[comicId]/chapter/[chapterNumber]/chapter.tsx
@@ -99,6 +99,14 @@ const Chapter: React.FC = ({
return () => clearInterval(commentIntervalId.current)
}, [openComments])
+ useEffect(() => {
+ window.addEventListener('keydown', (e) => {
+ if (e.which == 27) {
+ setMode('minscreen')
+ }
+ })
+ }, [])
+
useEffect(() => {
if (comicDetails?.data?.id && account) {
const currentReading = getItem('current_reading_manga')
diff --git a/src/pages/comic/[comicId]/chapter/[chapterNumber]/with-api.tsx b/src/pages/comic/[comicId]/chapter/[chapterNumber]/with-api.tsx
index ff21795d..b716bbf1 100644
--- a/src/pages/comic/[comicId]/chapter/[chapterNumber]/with-api.tsx
+++ b/src/pages/comic/[comicId]/chapter/[chapterNumber]/with-api.tsx
@@ -44,7 +44,10 @@ const withApi = (Component: React.FC
) => (props: any) => {
isLiked: !!data.chapters_likes.length,
}
- if (data.chapter_type == CHAPTER_TYPE.ACCOUNT_ONLY || data.chapter_type == CHAPTER_TYPE.NFTS_ONLY) {
+ if (
+ (data.chapter_type == CHAPTER_TYPE.ACCOUNT_ONLY || data.chapter_type == CHAPTER_TYPE.NFTS_ONLY) &&
+ account?.id
+ ) {
const { data: protectedData } = await privateAxios.get(`${config.REST_API_URL}/chapter/${data.id}/protected`)
LANGUAGE.forEach((l) => {
const chapterLanguage = protectedData.data.chapters[0].chapter_languages.find((cl) => cl.language_id == l.id)
diff --git a/src/pages/comic/[comicId]/comic.tsx b/src/pages/comic/[comicId]/comic.tsx
index 99c2155e..4e275236 100644
--- a/src/pages/comic/[comicId]/comic.tsx
+++ b/src/pages/comic/[comicId]/comic.tsx
@@ -173,7 +173,7 @@ export default function Comic({ comicDetails, subscribe, unsubscribe, like, unli
{!!comicDetails.data.collections.length ? (
-
+
) : (
diff --git a/src/pages/search/index.tsx b/src/pages/search/index.tsx
index 0634be11..871849bd 100644
--- a/src/pages/search/index.tsx
+++ b/src/pages/search/index.tsx
@@ -23,7 +23,7 @@ export default function Search() {
{`${searchComic.data?.length} ${t(
'results for'
)} "${keyword}"`}
-
+
{searchComic.loading
? Array.apply(null, Array(6)).map((d, index) => {
return