feat(WEB-111): adjust footer for updated model
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user