Merge pull request #432 from lowdefy/renderer-message

fix(blocksAntd): Fix args.icon for Message.
This commit is contained in:
Sam 2021-02-15 18:03:38 +02:00 committed by GitHub
commit d6b1a58032
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,7 +29,7 @@ const MessageBlock = ({ blockId, events, properties, methods }) => {
content: args.content || properties.content || blockId,
duration: type.isNone(args.duration) ? properties.duration : args.duration,
onClose: () => methods.triggerEvent({ name: 'onClose' }),
icon: properties.icon && (
icon: (args.icon || properties.icon) && (
<Icon
blockId={`${blockId}_icon`}
events={events}