Skip to content

Commit

Permalink
fix: add theme to price card validator schema
Browse files Browse the repository at this point in the history
  • Loading branch information
qradle-yndx committed Dec 5, 2023
1 parent 2bc3896 commit 0e47fe1
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions src/sub-blocks/PriceCard/schema.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import {
AnimatableProps,
BaseProps,
ButtonBlock,
CardBase,
LinkProps,
MediaProps,
} from '../../schema/validators/common';
import pick from 'lodash/pick';

import {BaseProps, ButtonBlock, CardBase, LinkProps} from '../../schema/validators/common';
import {ContentBase} from '../Content/schema';

const PriceCardContentProps = pick(ContentBase, ['theme']);

export const PriceCardBlock = {
'price-card': {
Expand All @@ -14,8 +12,7 @@ export const PriceCardBlock = {
properties: {
...BaseProps,
...CardBase,
...MediaProps,
...AnimatableProps,
...PriceCardContentProps,
title: {
type: 'string',
},
Expand Down

0 comments on commit 0e47fe1

Please sign in to comment.