feat(SW-650): added sitewide alert to use sticky position hook

This commit is contained in:
Erik Tiekstra
2024-10-24 10:23:19 +02:00
parent 63dbbac014
commit fbdfeafcb5
7 changed files with 87 additions and 23 deletions

View File

@@ -5,7 +5,7 @@ import type { System } from "@/types/requests/system"
import type { Edges } from "@/types/requests/utils/edges"
import type { NodeRefs } from "@/types/requests/utils/refs"
import type { HeaderRefs } from "@/types/trpc/routers/contentstack/header"
import type { Alert } from "@/types/trpc/routers/contentstack/siteConfig"
import type { AlertOutput } from "@/types/trpc/routers/contentstack/siteConfig"
import type { ContactConfig } from "./output"
export function getConnections({ header }: HeaderRefs) {
@@ -71,7 +71,7 @@ export function getFooterConnections(refs: FooterRefDataRaw) {
}
export function getAlertPhoneContactData(
alert: Alert,
alert: AlertOutput,
contactConfig: ContactConfig
) {
if (alert.phoneContact) {