1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-20 06:01:24 +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 (
<span
{...props.attributes}
style={{ fontWeight: leaf.bold ? 'bold' : 'normal' }}
style={{ fontWeight: props.leaf.bold ? 'bold' : 'normal' }}
>
{props.children}
</span>
@@ -181,7 +181,7 @@ const Leaf = props => {
return (
<span
{...props.attributes}
style={{ fontWeight: leaf.bold ? 'bold' : 'normal' }}
style={{ fontWeight: props.leaf.bold ? 'bold' : 'normal' }}
>
{props.children}
</span>