fix: add heading and subtitle to overview table

This commit is contained in:
Christel Westerberg
2024-06-24 12:03:05 +02:00
parent 385d5ade28
commit fe6e4e27e1
10 changed files with 60 additions and 87 deletions

View File

@@ -121,6 +121,7 @@ const accountPageContentItem = z.discriminatedUnion("__typename", [
export const validateAccountPageSchema = z.object({
account_page: z.object({
heading: z.string().nullable(),
url: z.string(),
title: z.string(),
content: z.array(accountPageContentItem),

View File

@@ -15,6 +15,7 @@ import {
import { removeEmptyObjects } from "../../utils"
import {
type AccountPage,
AccountPageDataRaw,
AccountPageRefsDataRaw,
validateAccountPageRefsSchema,
validateAccountPageSchema,
@@ -62,7 +63,7 @@ export const accountPageQueryRouter = router({
generateTag(lang, validatedAccountPageRefs.data.account_page.system.uid),
].flat()
const response = await request<AccountPageRefsDataRaw>(
const response = await request<AccountPageDataRaw>(
GetAccountPage,
{
locale: lang,