diff --git a/src/components/Chronicles/ChroniclesList.tsx b/src/components/Chronicles/ChroniclesList.tsx index 6b299af..1ba2bb1 100644 --- a/src/components/Chronicles/ChroniclesList.tsx +++ b/src/components/Chronicles/ChroniclesList.tsx @@ -1,7 +1,7 @@ import { GetChroniclesChaptersQuery } from "graphql/generated"; import { filterHasAttributes } from "helpers/others"; import { TranslatedChroniclePreview } from "components/Translated"; -import { prettyinlineTitle, prettySlug } from "helpers/formatters"; +import { prettyInlineTitle, prettySlug } from "helpers/formatters"; import { Ico, Icon } from "components/Ico"; import { useBoolean } from "hooks/useBoolean"; import { compareDate } from "helpers/date"; @@ -76,7 +76,7 @@ export const ChroniclesList = ({ content.attributes.translations, ["language.data.attributes.code"] as const ).map((translation) => ({ - title: prettyinlineTitle( + title: prettyInlineTitle( translation.pre_title, translation.title, translation.subtitle diff --git a/src/components/ThumbnailHeader.tsx b/src/components/ThumbnailHeader.tsx index 7867fb7..a544dbc 100644 --- a/src/components/ThumbnailHeader.tsx +++ b/src/components/ThumbnailHeader.tsx @@ -4,7 +4,7 @@ import { InsetBox } from "components/InsetBox"; import { Markdawn } from "components/Markdown/Markdawn"; import { GetContentTextQuery, UploadImageFragment } from "graphql/generated"; import { AppStaticProps } from "graphql/getAppStaticProps"; -import { prettyinlineTitle, prettySlug, slugify } from "helpers/formatters"; +import { prettyInlineTitle, prettySlug, slugify } from "helpers/formatters"; import { getAssetURL, ImageQuality } from "helpers/img"; import { filterHasAttributes } from "helpers/others"; import { useLightBox } from "hooks/useLightBox"; @@ -65,7 +65,7 @@ export const ThumbnailHeader = ({
diff --git a/src/helpers/formatters.ts b/src/helpers/formatters.ts index c0cae3c..a47063b 100644 --- a/src/helpers/formatters.ts +++ b/src/helpers/formatters.ts @@ -45,7 +45,7 @@ export const prettySlug = (slug?: string, parentSlug?: string): string => { return ""; }; -export const prettyinlineTitle = ( +export const prettyInlineTitle = ( pretitle: string | null | undefined, title: string | null | undefined, subtitle: string | null | undefined diff --git a/src/pages/contents/[slug]/index.tsx b/src/pages/contents/[slug]/index.tsx index 8525b1a..f453511 100644 --- a/src/pages/contents/[slug]/index.tsx +++ b/src/pages/contents/[slug]/index.tsx @@ -19,7 +19,7 @@ import { AppStaticProps, getAppStaticProps } from "graphql/getAppStaticProps"; import { getReadySdk } from "graphql/sdk"; import { getDescription } from "helpers/description"; import { - prettyinlineTitle, + prettyInlineTitle, prettyLanguage, prettyItemSubType, prettySlug, @@ -288,7 +288,7 @@ const Content = ({ 1) { if ( filterDefined(item.attributes.translations).find((translation) => - prettyinlineTitle( + prettyInlineTitle( translation.pre_title, translation.title, translation.subtitle @@ -291,7 +291,7 @@ const Contents = ({ ${item.attributes.slug} ${filterDefined(item.attributes.translations) .map((translation) => - prettyinlineTitle( + prettyInlineTitle( translation.pre_title, translation.title, translation.subtitle diff --git a/src/pages/library/[slug]/index.tsx b/src/pages/library/[slug]/index.tsx index e86c0c5..54dc35a 100644 --- a/src/pages/library/[slug]/index.tsx +++ b/src/pages/library/[slug]/index.tsx @@ -28,7 +28,7 @@ import { AppStaticProps, getAppStaticProps } from "graphql/getAppStaticProps"; import { getReadySdk } from "graphql/sdk"; import { prettyDate, - prettyinlineTitle, + prettyInlineTitle, prettyItemSubType, prettyItemType, prettyPrice, @@ -185,7 +185,7 @@ const LibrarySlug = ({

{langui.subitem_of}