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