Skip to content
Snippets Groups Projects
Commit 9957f605 authored by chris's avatar chris
Browse files

move onClick into button

parent e1e37308
No related branches found
No related tags found
1 merge request!308Answer nodeview
...@@ -203,12 +203,8 @@ export default ({ node, view, getPos }) => { ...@@ -203,12 +203,8 @@ export default ({ node, view, getPos }) => {
<IconsWrapper> <IconsWrapper>
{showAddIcon && !readOnly && ( {showAddIcon && !readOnly && (
<Button <Button
icon={ onClick={() => addOption(node.attrs.id)}
<PlusSquareOutlined icon={<PlusSquareOutlined title="Add Option" />}
onClick={() => addOption(node.attrs.id)}
title="Add Option"
/>
}
/> />
)} )}
{showRemoveIcon && !readOnly && ( {showRemoveIcon && !readOnly && (
......
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