1
0
Fork 0

chore: More work on events

This commit is contained in:
Joost De Cock 2020-07-19 18:40:32 +02:00
parent 558c92f10a
commit 981846170d
5 changed files with 100 additions and 71 deletions

View file

@ -1,12 +1,12 @@
import React from 'react'
import Event from './event'
const DraftEvents = ({ events, app }) => (
const DraftEvents = ({ events }) => (
<div className="draft-events">
{['error', 'warning', 'info', 'debug'].map((type) => (
<div className={`events-${type}`}>
{events[type].map((event, index) => (
<Event event={event} app={app} type={type} key={index} />
<Event event={event} type={type} key={index} />
))}
</div>
))}