mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-21 06:59:09 +00:00
refract make reusable components
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user