feat(SW-285): add missing code for dynamic content

This commit is contained in:
Chuma McPhoy
2024-09-02 20:04:58 +02:00
parent 1c2a34591b
commit 60636d8cbe
12 changed files with 206 additions and 10 deletions

View File

@@ -6,7 +6,7 @@ import BenefitValue from "../BenefitValue"
import styles from "./benefitCard.module.css"
import type { BenefitCardProps } from "@/types/components/loyalty/blocks"
import type { BenefitCardProps } from "@/types/components/content/blocks"
export default function BenefitCard({
comparedValues,

View File

@@ -4,7 +4,7 @@ import BenefitCard from "../BenefitCard"
import styles from "./benefitList.module.css"
import type { BenefitListProps } from "@/types/components/loyalty/blocks"
import type { BenefitListProps } from "@/types/components/content/blocks"
export default function BenefitList({ levels }: BenefitListProps) {
return getUnlockedBenefits(levels).map((benefit) => {

View File

@@ -4,7 +4,7 @@ import CheckCircle from "@/components/Icons/CheckCircle"
import styles from "./benefitValue.module.css"
import type { BenefitValueProps } from "@/types/components/loyalty/blocks"
import type { BenefitValueProps } from "@/types/components/content/blocks"
export default function BenefitValue({ benefit }: BenefitValueProps) {
if (!benefit.unlocked) {

View File

@@ -8,7 +8,7 @@ import styles from "./desktopHeader.module.css"
import type {
DesktopSelectColumns,
LargeTableProps,
} from "@/types/components/loyalty/blocks"
} from "@/types/components/content/blocks"
export default function DesktopHeader({
levels,

View File

@@ -11,7 +11,7 @@ import styles from "./largeTable.module.css"
import type {
BenefitTableHeaderProps,
LargeTableProps,
} from "@/types/components/loyalty/blocks"
} from "@/types/components/content/blocks"
export default function LargeTable({
levels,

View File

@@ -1,6 +1,6 @@
import styles from "./levelSummary.module.css"
import type { LevelSummaryProps } from "@/types/components/loyalty/blocks"
import type { LevelSummaryProps } from "@/types/components/content/blocks"
export default function LevelSummary({
level,