Skip to content

Commit dcffe83

Browse files
authored
fix: add price card to sub blocks (#744)
1 parent a15d5ae commit dcffe83

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/models/constructor-items/sub-blocks.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,10 @@ export type BasicCardModel = {
205205
type: SubBlockType.BasicCard;
206206
} & BasicCardProps;
207207

208+
export type PriceCardModel = {
209+
type: SubBlockType.PriceCard;
210+
} & PriceCardProps;
211+
208212
export type SubBlockModels =
209213
| DividerModel
210214
| QuoteModel
@@ -214,6 +218,7 @@ export type SubBlockModels =
214218
| HubspotFormModel
215219
| BannerCardModel
216220
| BasicCardModel
221+
| PriceCardModel
217222
| LayoutItemModel;
218223

219224
export type SubBlock = SubBlockModels;

src/schema/constants.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import {
2727
BasicCard,
2828
Divider,
2929
MediaCardBlock,
30+
PriceCardBlock,
3031
PriceDetailedBlock,
3132
Quote,
3233
} from './validators/sub-blocks';
@@ -61,6 +62,7 @@ export const cardSchemas = {
6162
...BackgroundCard,
6263
...Quote,
6364
...BasicCard,
65+
...PriceCardBlock,
6466
};
6567

6668
export const constructorBlockSchemaNames = [
@@ -99,4 +101,5 @@ export const constructorCardSchemaNames = [
99101
'quote',
100102
'basic-card',
101103
'layout-item',
104+
'price-card',
102105
];

0 commit comments

Comments
 (0)