+
{
+ props.setState(false);
+ }}
+ />
+
+ {props.children}
+
+
+ );
+}
diff --git a/src/pages/404.tsx b/src/pages/404.tsx
index c54d2b5..5e312fd 100644
--- a/src/pages/404.tsx
+++ b/src/pages/404.tsx
@@ -4,7 +4,9 @@ import { getWebsiteInterface } from "graphql/operations";
import { GetStaticProps } from "next";
import { GetWebsiteInterfaceQuery } from "graphql/operations-types";
import AppLayout from "components/AppLayout";
-import ReturnButton from "components/PanelComponents/ReturnButton";
+import ReturnButton, {
+ ReturnButtonType,
+} from "components/PanelComponents/ReturnButton";
type FourOhFourProps = {
langui: GetWebsiteInterfaceQuery;
@@ -15,7 +17,12 @@ export default function FourOhFour(props: FourOhFourProps): JSX.Element {
const contentPanel = (
404 - {langui.page_not_found}
-
+
);
return (
diff --git a/src/pages/contents/[slug]/index.tsx b/src/pages/contents/[slug]/index.tsx
index 144ecda..f8b78cd 100644
--- a/src/pages/contents/[slug]/index.tsx
+++ b/src/pages/contents/[slug]/index.tsx
@@ -14,7 +14,9 @@ import HorizontalLine from "components/HorizontalLine";
import ThumbnailHeader from "components/Content/ThumbnailHeader";
import AppLayout from "components/AppLayout";
import SubPanel from "components/Panels/SubPanel";
-import ReturnButton from "components/PanelComponents/ReturnButton";
+import ReturnButton, {
+ ReturnButtonType,
+} from "components/PanelComponents/ReturnButton";
import { prettyinlineTitle, prettySlug } from "queries/helpers";
type ContentIndexProps = {
@@ -27,12 +29,25 @@ export default function ContentIndex(props: ContentIndexProps): JSX.Element {
const langui = props.langui.websiteInterfaces.data[0].attributes;
const subPanel = (
-
-
+
+
);
const contentPanel = (
+
diff --git a/src/pages/contents/[slug]/read.tsx b/src/pages/contents/[slug]/read.tsx
index f6dd015..7f27b8f 100644
--- a/src/pages/contents/[slug]/read.tsx
+++ b/src/pages/contents/[slug]/read.tsx
@@ -12,7 +12,9 @@ import {
import ContentPanel from "components/Panels/ContentPanel";
import HorizontalLine from "components/HorizontalLine";
import SubPanel from "components/Panels/SubPanel";
-import ReturnButton from "components/PanelComponents/ReturnButton";
+import ReturnButton, {
+ ReturnButtonType,
+} from "components/PanelComponents/ReturnButton";
import ThumbnailHeader from "components/Content/ThumbnailHeader";
import AppLayout from "components/AppLayout";
import Markdawn from "components/Markdown/Markdawn";
@@ -46,10 +48,10 @@ export default function ContentRead(props: ContentReadProps): JSX.Element {
href={`/contents/${content.slug}`}
title={"Content"}
langui={langui}
+ displayOn={ReturnButtonType.Desktop}
+ horizontalLine
/>
-
-
{content.text_set.length > 0 ? (
@@ -138,6 +140,13 @@ export default function ContentRead(props: ContentReadProps): JSX.Element {
);
const contentPanel = (
+
diff --git a/src/pages/library/[slug].tsx b/src/pages/library/[slug].tsx
index 8261f4d..6b7da04 100644
--- a/src/pages/library/[slug].tsx
+++ b/src/pages/library/[slug].tsx
@@ -26,7 +26,9 @@ import {
sortContent,
} from "queries/helpers";
import SubPanel from "components/Panels/SubPanel";
-import ReturnButton from "components/PanelComponents/ReturnButton";
+import ReturnButton, {
+ ReturnButtonType,
+} from "components/PanelComponents/ReturnButton";
import NavOption from "components/PanelComponents/NavOption";
import Chip from "components/Chip";
import Button from "components/Button";
@@ -37,6 +39,7 @@ import InsetBox from "components/InsetBox";
import Img, { ImageQuality } from "components/Img";
import { useAppLayout } from "contexts/AppLayoutContext";
import { useRouter } from "next/router";
+import ContentTOCLine from "components/Library/ContentTOCLine";
interface LibrarySlugProps {
libraryItem: GetLibraryItemQuery;
@@ -58,8 +61,13 @@ export default function LibrarySlug(props: LibrarySlugProps): JSX.Element {
const subPanel = (
-
-
+
+
-
+
{item.thumbnail.data ? (
![]()
{langui.contents}
{item.contents.data.map((content) => (
-
-
-
-
- subdirectory_arrow_right
-
-
- {content.attributes.scan_set.length > 0 ? (
-
- ) : (
- ""
- )}
-
- {content.attributes.content.data ? (
-
- ) : (
- ""
- )}
-
- {content.attributes.scan_set.length === 0 &&
- !content.attributes.content.data
- ? "The content is not available"
- : ""}
-
-
+ />
))}
diff --git a/src/pages/wiki/chronology.tsx b/src/pages/wiki/chronology.tsx
index e78981a..a02d3ef 100644
--- a/src/pages/wiki/chronology.tsx
+++ b/src/pages/wiki/chronology.tsx
@@ -13,7 +13,9 @@ import {
getWebsiteInterface,
} from "graphql/operations";
import NavOption from "components/PanelComponents/NavOption";
-import ReturnButton from "components/PanelComponents/ReturnButton";
+import ReturnButton, {
+ ReturnButtonType,
+} from "components/PanelComponents/ReturnButton";
import HorizontalLine from "components/HorizontalLine";
import AppLayout from "components/AppLayout";
import {
@@ -72,9 +74,6 @@ export default function DataChronology(
const subPanel = (
-
-
-
{props.chronologyEras.chronologyEras.data.map((era) => (