aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Renard 2019-09-11 21:43:23 -0300
committerLibravatar Renard 2019-09-11 21:43:23 -0300
commitcd4c6325f766ed25f453b5bc072dd2ec180a8983 (patch)
tree7ea55d1a8ced7a04e8bf15543b34c8eec7b22575
parent5382ed028c7ec554f760affa7f533b15421959c9 (diff)
downloadbai-client-cd4c6325f766ed25f453b5bc072dd2ec180a8983.tar.gz
bai-client-cd4c6325f766ed25f453b5bc072dd2ec180a8983.tar.xz
bai-client-cd4c6325f766ed25f453b5bc072dd2ec180a8983.zip
List's child keys
-rw-r--r--src/Home.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Home.js b/src/Home.js
index 2c555f6..587212d 100644
--- a/src/Home.js
+++ b/src/Home.js
@@ -62,7 +62,7 @@ class Home extends Component {
<Header as="h4">Hilos activos</Header>
<List divided>
{lastAgeThreads.map(thread =>
- <List.Item>
+ <List.Item key={thread.id}>
<List.Icon name='comment alternate outline' size='large' verticalAlign='middle' />
<List.Content>
<List.Header as={Link} to={`${thread.dir}/read/${thread.id}`}>{thread.content}</List.Header>
@@ -77,7 +77,7 @@ class Home extends Component {
<Header as="h4">Nuevos hilos</Header>
<List divided>
{newThreadsList.map(thread =>
- <List.Item>
+ <List.Item key={thread.id}>
<List.Icon name='comment alternate outline' size='large' verticalAlign='middle' />
<List.Content>
<List.Header as={Link} to={`${thread.dir}/read/${thread.id}`}>{thread.content}</List.Header>
@@ -93,7 +93,7 @@ class Home extends Component {
<Header as="h4">Blotter</Header>
<List divided>
{latestNews.map(n =>
- <List.Item>
+ <List.Item key={n.timestamp}>
<List.Content>
<div dangerouslySetInnerHTML={{ __html: n.message }} />
<span className="ui tiny"><Icon name="clock" /><Moment fromNow unix locale="es" date={n.timestamp} /></span>