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

Commit 2a4ef10

Browse files
author
Claudio Procida
committed
Fixes warning for missing keys in color controls example
1 parent 8d3cfba commit 2a4ef10

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@
146146
<div style={styles.controls}>
147147
{COLORS.map(type =>
148148
<StyleButton
149+
key={type.label}
149150
active={currentStyle.has(type.style)}
150151
label={type.label}
151152
onToggle={props.onToggle}

examples/draft-0-9-1/color/color.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@
146146
<div style={styles.controls}>
147147
{COLORS.map(type =>
148148
<StyleButton
149+
key={type.label}
149150
active={currentStyle.has(type.style)}
150151
label={type.label}
151152
onToggle={props.onToggle}

meta/bundle-size-stats/Draft.js.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

meta/bundle-size-stats/Draft.min.js.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)