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:
committed by
Ian Storm Taylor
parent
6aae94156b
commit
ed974222a9
@@ -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>
|
||||||
|
Reference in New Issue
Block a user