Skip to content
This repository was archived by the owner on Feb 6, 2023. It is now read-only.

Commit e65a8e6

Browse files
cbeninatifacebook-github-bot
authored andcommitted
Match block and inline examples for consistency.
Summary: **Summary** A simple update to keep the examples consistent. It could have gone either way, so I updated the second example to match the first. **Test Plan** N/A Closes #1648 Differential Revision: D6976848 fbshipit-source-id: c6e4047d9f41b8776a1c7f50457495cfb0ee20ea
1 parent 0a1f981 commit e65a8e6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/draft-0-10-0/rich/rich.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,11 @@
217217
];
218218

219219
const InlineStyleControls = (props) => {
220-
var currentStyle = props.editorState.getCurrentInlineStyle();
220+
const currentStyle = props.editorState.getCurrentInlineStyle();
221+
221222
return (
222223
<div className="RichEditor-controls">
223-
{INLINE_STYLES.map(type =>
224+
{INLINE_STYLES.map((type) =>
224225
<StyleButton
225226
key={type.label}
226227
active={currentStyle.has(type.style)}

0 commit comments

Comments
 (0)