1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-21 06:31:28 +02:00

Custom Format docs typo fix: leaf -> props (#3257)

* Custom Format docs typo fix: leaf -> props

* Update 04-applying-custom-formatting.md
This commit is contained in:
Tim Buckley
2019-12-05 19:13:34 -05:00
committed by Ian Storm Taylor
parent 6aae94156b
commit ed974222a9

View File

@@ -108,7 +108,7 @@ const Leaf = props => {
return ( return (
<span <span
{...props.attributes} {...props.attributes}
style={{ fontWeight: leaf.bold ? 'bold' : 'normal' }} style={{ fontWeight: props.leaf.bold ? 'bold' : 'normal' }}
> >
{props.children} {props.children}
</span> </span>
@@ -181,7 +181,7 @@ const Leaf = props => {
return ( return (
<span <span
{...props.attributes} {...props.attributes}
style={{ fontWeight: leaf.bold ? 'bold' : 'normal' }} style={{ fontWeight: props.leaf.bold ? 'bold' : 'normal' }}
> >
{props.children} {props.children}
</span> </span>