Commit 55504c61 authored by Michael Iseard's avatar Michael Iseard
Browse files

Use logo component instead of <img> to prevent border on WordPress 5.8

parent 4003dd34
import {registerBlockType} from '@wordpress/blocks'
import Save from "./save"
import Edit from "./edit"
import logo from '../../images/logo-colour.svg'
import {KudosLogo} from "../../common/components/KudosLogo";
/**
* Register block.
*/
export default registerBlockType('iseardmedia/kudos-button', {
icon: <img width="30" src={logo} alt="Kudos Logo"/>,
icon: <KudosLogo/>,
edit: Edit,
save: Save
})
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment