feat: add JoinLoyalty component
This commit is contained in:
@@ -1,16 +1,18 @@
|
||||
import { PageLink } from "./myPages/navigation"
|
||||
import { Edges } from "./utils/edges"
|
||||
import type { AllRequestResponse } from "./utils/all"
|
||||
import type { Typename } from "./utils/typename"
|
||||
import { Edges } from "./utils/edges"
|
||||
import type { RTEDocument } from "../rte/node"
|
||||
import type { Embeds } from "./embeds"
|
||||
import type { ContactField } from "./contactConfig"
|
||||
|
||||
enum SidebarTypenameEnum {
|
||||
LoyaltyPageSidebarLoyaltyJoinContact = "LoyaltyPageSidebarLoyaltyJoinContact",
|
||||
export enum SidebarTypenameEnum {
|
||||
LoyaltyPageSidebarJoinLoyaltyContact = "LoyaltyPageSidebarJoinLoyaltyContact",
|
||||
LoyaltyPageSidebarContent = "LoyaltyPageSidebarContent",
|
||||
}
|
||||
|
||||
export type SidebarTypename = keyof typeof SidebarTypenameEnum
|
||||
|
||||
type SidebarContent = {
|
||||
content: {
|
||||
embedded_itemsConnection: Edges<Embeds>
|
||||
@@ -24,8 +26,8 @@ type Contact = {
|
||||
}
|
||||
}
|
||||
|
||||
type LoyaltyJoinContact = {
|
||||
loyalty_join_contact: {
|
||||
export type JoinLoyaltyContact = {
|
||||
join_loyalty_contact: {
|
||||
title: string
|
||||
contact: Typename<
|
||||
Contact,
|
||||
@@ -42,8 +44,8 @@ type LoyaltyJoinContact = {
|
||||
export type Sidebar =
|
||||
| Typename<SidebarContent, SidebarTypenameEnum.LoyaltyPageSidebarContent>
|
||||
| Typename<
|
||||
LoyaltyJoinContact,
|
||||
SidebarTypenameEnum.LoyaltyPageSidebarLoyaltyJoinContact
|
||||
JoinLoyaltyContact,
|
||||
SidebarTypenameEnum.LoyaltyPageSidebarJoinLoyaltyContact
|
||||
>
|
||||
|
||||
enum ContentBlocks {
|
||||
|
||||
Reference in New Issue
Block a user