fix: breakout typings
This commit is contained in:
@@ -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]
|
||||
|
||||
8
types/components/current/contentPage.ts
Normal file
8
types/components/current/contentPage.ts
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user