feat(SW-285): add missing code for dynamic content
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user