Skip to content

Commit d4e7f77

Browse files
committed
Fix unique key prop warnings
1 parent 65279dd commit d4e7f77

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

frontend/Panel.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,10 +284,10 @@ Panel.childContextTypes = {
284284
var panelRNStyle = bridge => (node, id) => {
285285
var props = node.get('props');
286286
if (!props || !props.style) {
287-
return <strong>No style</strong>;
287+
return <strong key="rnstyle">No style</strong>;
288288
}
289289
return (
290-
<div>
290+
<div key="rnstyle">
291291
<h3>React Native Style Editor</h3>
292292
<NativeStyler id={id} bridge={bridge} />
293293
</div>

plugins/ReactNativeStyle/StyleEdit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class StyleEdit extends React.Component {
4747
return (
4848
<ul style={styles.container}>
4949
{attrs.map(name => (
50-
<li style={styles.attr}>
50+
<li key={'style-' + name} style={styles.attr}>
5151
<BlurInput
5252
value={name}
5353
onChange={newName => this.props.onRename(name, '' + newName, this.props.style[name])}

0 commit comments

Comments
 (0)