Skip to content

Commit

Permalink
fix: add analyticsEvents to schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Marginy605 committed Sep 14, 2023
1 parent 30a67c7 commit e66c3ee
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/blocks/Icons/schema.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {AnimatableProps, BlockBaseProps} from '../../schema/validators/common';
import {AnalyticsEventSchema} from '../../schema/validators/event';

export const IconsProps = {
additionalProperties: false,
Expand Down Expand Up @@ -33,6 +34,19 @@ export const IconsProps = {
type: 'string',
},
},
analyticsEvents: {
oneOf: [
{
...AnalyticsEventSchema,
optionName: 'single',
},
{
type: 'array',
items: AnalyticsEventSchema,
optionName: 'list',
},
],
},
},
},
},
Expand Down

0 comments on commit e66c3ee

Please sign in to comment.