feat(WEB-111): adjust footer for updated model

This commit is contained in:
Simon Emanuelsson
2024-02-20 13:03:24 +01:00
parent cbb53df67c
commit 99c2a136ba
5 changed files with 26 additions and 100 deletions

View File

@@ -1,16 +1,5 @@
import { Lang } from "@/types/lang"
import {
ExternalLink,
InternalLink,
NavigationItem,
} from "@/types/requests/footer"
import type { NavigationItem } from "@/types/requests/footer"
export type FooterNavigationProps = {
linkGroups: NavigationItem[]
lang: Lang
}
export type FooterNavigationItemProps = {
linkObject: InternalLink | ExternalLink
lang: Lang
}

View File

@@ -1,33 +1,19 @@
import type { AllRequestResponse } from "./utils/all"
import type { Edges } from "./utils/edges"
import type { Image } from "../image"
import type { PageLink } from "./utils/pageLink"
type AppDownload = {
href: string
imageConnection: Edges<Image>
}
export type InternalLink = {
__typename: "FooterNavigationLinksInternalLink"
internal_link: {
link_text: string
pageConnection: Edges<PageLink>
}
}
export type ExternalLink = {
__typename: "FooterNavigationLinksExternalLink"
external_link: {
link: {
href: string
title: string
}
}
export type Link = {
href: string
title: string
}
export type NavigationItem = {
links: (ExternalLink | InternalLink)[]
links: Link[]
title: string
}