fix(SW-1886): Removed "firstItem" props from blocks as it generates multiple h1 tags on those pages

* feat(SW-1886): Removed "firstItem" props from blocks as it generates multiple h1 tags on those pages


Approved-by: Fredrik Thorsson
Approved-by: Simon.Emanuelsson
This commit is contained in:
Erik Tiekstra
2025-03-12 14:09:20 +00:00
parent b472854243
commit 689e9d72cb
12 changed files with 22 additions and 67 deletions

View File

@@ -1,5 +1,3 @@
import type { CardsGrid } from "@/types/trpc/routers/contentstack/blocks"
export interface CardsGridProps extends Pick<CardsGrid, "cards_grid"> {
firstItem?: boolean
}
export interface CardsGridProps extends Pick<CardsGrid, "cards_grid"> {}

View File

@@ -3,20 +3,8 @@ import type { DynamicContent } from "@/types/trpc/routers/contentstack/blocks"
interface PartialDynamicContent
extends Pick<DynamicContent, "dynamic_content"> {}
export interface DynamicContentProps extends PartialDynamicContent {
firstItem: boolean
}
export interface HowItWorksProps extends PartialDynamicContent {
firstItem: boolean
}
export interface LoyaltyLevelsProps extends PartialDynamicContent {
firstItem: boolean
}
export interface OverviewTableProps extends PartialDynamicContent {
firstItem: boolean
}
export interface DynamicContentProps extends PartialDynamicContent {}
export interface HowItWorksProps extends PartialDynamicContent {}
export interface LoyaltyLevelsProps extends PartialDynamicContent {}
export interface OverviewTableProps extends PartialDynamicContent {}
export interface SignupFormWrapperProps extends PartialDynamicContent {}

View File

@@ -1,8 +1,6 @@
import type { Shortcut } from "@/types/trpc/routers/contentstack/blocks"
export interface ShortcutsListProps extends Shortcut {
firstItem?: boolean
}
export interface ShortcutsListProps extends Shortcut {}
export type ShortcutsListItemsProps = {
className?: string