fix: breakout typings

This commit is contained in:
Christel Westerberg
2024-02-12 16:03:59 +01:00
parent c8a37b22da
commit 12b5a131e7
2 changed files with 10 additions and 7 deletions

View File

@@ -5,14 +5,9 @@ import Hero from "@/components/Current/Hero"
import Preamble from "@/components/Current/Preamble"
import Section from "@/components/Current/Section"
import SubnavMobile from "@/components/Current/SubnavMobile"
import { Lang } from "@/types/lang"
import { GetCurrentBlockPageData } from "@/types/requests/currentBlockPage"
type ContentPageProps = {
data: GetCurrentBlockPageData
uri: string
lang: Lang
}
import type { ContentPageProps } from "@/types/components/current/contentPage"
export default function ContentPage({ data, lang, uri }: ContentPageProps) {
const page = data.all_current_blocks_page.items[0]

View File

@@ -0,0 +1,8 @@
import type { Lang } from "@/types/lang"
import type { GetCurrentBlockPageData } from "@/types/requests/currentBlockPage"
export type ContentPageProps = {
data: GetCurrentBlockPageData
uri: string
lang: Lang
}