refactor: zod validation and pr comments
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import {
|
||||
Block,
|
||||
CardGrid,
|
||||
CardGridCard,
|
||||
DynamicContent,
|
||||
RteBlockContent,
|
||||
} from "@/server/routers/contentstack/loyaltyPage/output"
|
||||
@@ -18,8 +17,6 @@ export type DynamicComponentProps = {
|
||||
component: DynamicContent["dynamic_content"]["component"]
|
||||
}
|
||||
|
||||
export type CardProps = { card: CardGridCard }
|
||||
|
||||
export type CardGridProps = Pick<CardGrid, "card_grid">
|
||||
|
||||
export type Content = { content: RteBlockContent["content"]["content"] }
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
import { ContactFields } from "@/server/routers/contentstack/contactConfig/output"
|
||||
import {
|
||||
JoinLoyaltyContact,
|
||||
Sidebar,
|
||||
} from "@/server/routers/contentstack/loyaltyPage/output"
|
||||
|
||||
export type SidebarProps = {
|
||||
block: Sidebar
|
||||
blocks: Sidebar[]
|
||||
}
|
||||
|
||||
export type JoinLoyaltyContactProps = {
|
||||
@@ -14,3 +15,7 @@ export type JoinLoyaltyContactProps = {
|
||||
export type ContactProps = {
|
||||
contactBlock: JoinLoyaltyContact["join_loyalty_contact"]["contact"]
|
||||
}
|
||||
|
||||
export type ContactRowProps = {
|
||||
contact: ContactFields
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user