[yoga-6] add pricePostfix and price description
This commit is contained in:
@@ -7,7 +7,7 @@ export interface Props{
|
||||
config: YogaPrice_Plain
|
||||
}
|
||||
|
||||
export function PriceItemComponent({config: {header,option1,option2,price,icon, image,buttonText}} : Props){
|
||||
export function PriceItemComponent({config: {header, description, option1,option2,price,pricePostfix, icon, image,buttonText}} : Props){
|
||||
// there are some issues with the strapi generated types
|
||||
const iconFile: StrapiFile = icon as StrapiFile;
|
||||
const imageFile: StrapiFile = image as StrapiFile;
|
||||
@@ -28,6 +28,7 @@ export function PriceItemComponent({config: {header,option1,option2,price,icon,
|
||||
</div>
|
||||
<div className="pricing_plans_box_lower_portion">
|
||||
<h3>{header}</h3>
|
||||
<p className={'text-center'}>{description}</p>
|
||||
<ul className="list-unstyled">
|
||||
<li>
|
||||
<i className="fa-solid fa-check" aria-hidden="true"></i>{option1}
|
||||
@@ -38,7 +39,7 @@ export function PriceItemComponent({config: {header,option1,option2,price,icon,
|
||||
</ul>
|
||||
<div className="pricing_plans_span_wrapper">
|
||||
<span className="price">{price} FT</span>
|
||||
<span className="per_month">/per month</span>
|
||||
{ pricePostfix && <span className="per_month">{pricePostfix}</span> }
|
||||
</div>
|
||||
<div className="btn_wrapper">
|
||||
<a className="enroll_now_btn text-decoration-none" href="/pricing.html">{buttonText}</a>
|
||||
|
||||
@@ -14,6 +14,8 @@ export interface YogaPrice {
|
||||
price?: number;
|
||||
icon?: { data: Media };
|
||||
image?: { data: Media };
|
||||
pricePostfix?: string;
|
||||
description?: string;
|
||||
};
|
||||
}
|
||||
export interface YogaPrice_Plain {
|
||||
@@ -25,6 +27,8 @@ export interface YogaPrice_Plain {
|
||||
price?: number;
|
||||
icon?: Media_Plain;
|
||||
image?: Media_Plain;
|
||||
pricePostfix?: string;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
export interface YogaPrice_NoRelations {
|
||||
@@ -36,6 +40,8 @@ export interface YogaPrice_NoRelations {
|
||||
price?: number;
|
||||
icon?: number;
|
||||
image?: number;
|
||||
pricePostfix?: string;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
export interface YogaPrice_AdminPanelLifeCycle {
|
||||
@@ -47,4 +53,6 @@ export interface YogaPrice_AdminPanelLifeCycle {
|
||||
price?: number;
|
||||
icon?: AdminPanelRelationPropertyModification<Media_Plain>;
|
||||
image?: AdminPanelRelationPropertyModification<Media_Plain>;
|
||||
pricePostfix?: string;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
@@ -13,6 +13,7 @@ export interface YogaSingleService {
|
||||
image?: { data: Media };
|
||||
imageAlt?: string;
|
||||
name?: string;
|
||||
article?: string;
|
||||
locale: string;
|
||||
localizations?: { data: YogaSingleService[] };
|
||||
};
|
||||
@@ -25,6 +26,7 @@ export interface YogaSingleService_Plain {
|
||||
image?: Media_Plain;
|
||||
imageAlt?: string;
|
||||
name?: string;
|
||||
article?: string;
|
||||
locale: string;
|
||||
localizations?: YogaSingleService_Plain[];
|
||||
}
|
||||
@@ -37,6 +39,7 @@ export interface YogaSingleService_NoRelations {
|
||||
image?: number;
|
||||
imageAlt?: string;
|
||||
name?: string;
|
||||
article?: string;
|
||||
locale: string;
|
||||
localizations?: YogaSingleService[];
|
||||
}
|
||||
@@ -49,6 +52,7 @@ export interface YogaSingleService_AdminPanelLifeCycle {
|
||||
image?: AdminPanelRelationPropertyModification<Media_Plain>;
|
||||
imageAlt?: string;
|
||||
name?: string;
|
||||
article?: string;
|
||||
locale: string;
|
||||
localizations?: YogaSingleService[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user