refract make reusable components

This commit is contained in:
cv
2021-04-10 22:21:01 +02:00
parent e51f3e6cd5
commit 54d19d729b
15 changed files with 311 additions and 160 deletions
@@ -1,7 +1,7 @@
import EventListItem from './EventListItem';
import style from './List.module.css';
import DelayBlock from './DelayBlock';
import BlockBlock from './BlockBlock';
import EventBlock from './EventBlock';
export default function EventList(props) {
const { events, selected, eventsHandler } = props;
@@ -19,7 +19,7 @@ export default function EventList(props) {
if (e.type === 'event') {
eventCount = eventCount + 1;
return (
<EventListItem
<EventBlock
key={e.id}
index={index}
data={e}