the-events-calendar / events-gutenberg

https://theeventscalendar.com/extensions/events-gutenberg/
Other
32 stars 2 forks source link

Make sure Icon is a component and not an SVG #441

Closed mitogh closed 6 years ago

mitogh commented 6 years ago

Update recurrence block component to make sure the icon of each block is a component and not an SVG

Image

Error

TypeError: Cannot read property 'styles' of undefined
    at __webpack_exports__.default (webpack-internal:///../common/src/modules/icons/tec.svg:22:26)
    at http://recurrence.local/wp-content/plugins/gutenberg/build/editor/index.js?ver=1540870091:50:75362
    at Kr (http://recurrence.local/wp-content/plugins/gutenberg/build/editor/index.js?ver=1540870091:50:75526)
    at yh (http://recurrence.local/wp-content/plugins/gutenberg/vendor/react-dom.min.82e21c65.js:95:430)
    at lg (http://recurrence.local/wp-content/plugins/gutenberg/vendor/react-dom.min.82e21c65.js:120:88)
    at mg (http://recurrence.local/wp-content/plugins/gutenberg/vendor/react-dom.min.82e21c65.js:120:386)
    at gc (http://recurrence.local/wp-content/plugins/gutenberg/vendor/react-dom.min.82e21c65.js:127:202)
    at vb (http://recurrence.local/wp-content/plugins/gutenberg/vendor/react-dom.min.82e21c65.js:126:230)
    at ub (http://recurrence.local/wp-content/plugins/gutenberg/vendor/react-dom.min.82e21c65.js:126:65)
    at zd (http://recurrence.local/wp-content/plugins/gutenberg/vendor/react-dom.min.82e21c65.js:124:449)