diff --git a/app/[lang]/current-content-page/page.tsx b/app/[lang]/current-content-page/page.tsx index 9d37915e9..4490a153e 100644 --- a/app/[lang]/current-content-page/page.tsx +++ b/app/[lang]/current-content-page/page.tsx @@ -3,13 +3,13 @@ import { notFound } from "next/navigation"; import { request } from "@/lib/request" import { GetCurrentBlockPage } from "@/lib/graphql/Query/CurrentBlockPage.graphql" -import Aside from "@/components/Current/Aside"; -import Blocks from "@/components/Current/Blocks"; -import Header from "@/components/Current/Header"; -import Hero from "@/components/Current/Hero"; +import Aside from "@/components/Current/Aside" +import Blocks from "@/components/Current/Blocks" +import Header from "@/components/Current/Header" +import Hero from "@/components/Current/Hero" -import type { PageArgs, LangParams, UriParams } from "@/types/params"; -import type { GetCurrentBlockPageData } from "@/types/requests/currentBlockPage"; +import type { PageArgs, LangParams, UriParams } from "@/types/params" +import type { GetCurrentBlockPageData } from "@/types/requests/currentBlockPage" export default async function CurrentContentPage({ params, @@ -17,10 +17,13 @@ export default async function CurrentContentPage({ }: PageArgs) { try { if (!searchParams.uri) { - throw new Error("Bad URI"); + throw new Error("Bad URI") } - const response = await request(GetCurrentBlockPage, { locale: params.lang, url: searchParams.uri }) + const response = await request(GetCurrentBlockPage, { + locale: params.lang, + url: searchParams.uri, + }) if (!response.data?.all_current_blocks_page?.total) { console.log("#### DATA ####") @@ -36,17 +39,13 @@ export default async function CurrentContentPage({ <>
{images?.totalCount ? : null} -
+
- ); + ) } catch (err) { - return notFound(); + return notFound() } } diff --git a/components/Current/Footer/Da.tsx b/components/Current/Footer/Da.tsx deleted file mode 100644 index 7064988ee..000000000 --- a/components/Current/Footer/Da.tsx +++ /dev/null @@ -1,320 +0,0 @@ -/* eslint-disable @next/next/no-img-element */ -import Script from "next/script"; - -export default function DaFooter() { - return ( -