From aa1c6b47d9381198f5bf066e389fc80a3541393e Mon Sep 17 00:00:00 2001 From: Sergey <148218517+qradle-yndx@users.noreply.github.com> Date: Wed, 6 Dec 2023 15:15:30 +0300 Subject: [PATCH] fix: add theme to price card validator schema (#746) * fix: price card schema --- src/sub-blocks/PriceCard/schema.ts | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/sub-blocks/PriceCard/schema.ts b/src/sub-blocks/PriceCard/schema.ts index d1015babb..0a17d1c4d 100644 --- a/src/sub-blocks/PriceCard/schema.ts +++ b/src/sub-blocks/PriceCard/schema.ts @@ -1,11 +1,5 @@ -import { - AnimatableProps, - BaseProps, - ButtonBlock, - CardBase, - LinkProps, - MediaProps, -} from '../../schema/validators/common'; +import {BaseProps, ButtonBlock, CardBase, LinkProps} from '../../schema/validators/common'; +import {ContentBase} from '../Content/schema'; export const PriceCardBlock = { 'price-card': { @@ -14,8 +8,7 @@ export const PriceCardBlock = { properties: { ...BaseProps, ...CardBase, - ...MediaProps, - ...AnimatableProps, + theme: ContentBase.theme, title: { type: 'string', },