Skip to content

Commit

Permalink
Match block and inline examples for consistency.
Browse files Browse the repository at this point in the history
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 facebookarchive#1648

Differential Revision: D6976848

fbshipit-source-id: c6e4047d9f41b8776a1c7f50457495cfb0ee20ea
  • Loading branch information
cbeninati authored and facebook-github-bot committed Feb 13, 2018
1 parent 0a1f981 commit e65a8e6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/draft-0-10-0/rich/rich.html
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,11 @@
];

const InlineStyleControls = (props) => {
var currentStyle = props.editorState.getCurrentInlineStyle();
const currentStyle = props.editorState.getCurrentInlineStyle();

return (
<div className="RichEditor-controls">
{INLINE_STYLES.map(type =>
{INLINE_STYLES.map((type) =>
<StyleButton
key={type.label}
active={currentStyle.has(type.style)}
Expand Down

0 comments on commit e65a8e6

Please sign in to comment.