feat: update loyalty overview table ui
This commit is contained in:
@@ -1,14 +1,17 @@
|
||||
import Image from "@/components/Image"
|
||||
|
||||
import styles from "./levelSummary.module.css"
|
||||
|
||||
import { LevelSummaryProps } from "@/types/components/loyalty/blocks"
|
||||
|
||||
export default function LevelSummary({ level }: LevelSummaryProps) {
|
||||
export default function LevelSummary({
|
||||
level,
|
||||
showDescription = true,
|
||||
}: LevelSummaryProps) {
|
||||
return (
|
||||
<div className={styles.levelSummary}>
|
||||
<span className={styles.levelRequirements}>{level.requirement}</span>
|
||||
<p className={styles.levelSummaryText}>{level.description}</p>
|
||||
{showDescription && (
|
||||
<p className={styles.levelSummaryText}>{level.description}</p>
|
||||
)}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user