mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-16 04:43:35 +00:00
bugfix: event handler
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
import { IconButton } from '@chakra-ui/button';
|
||||
import { AddIcon, MinusIcon } from '@chakra-ui/icons';
|
||||
import AddIconBtn from '../../../common/components/buttons/AddIconBtn';
|
||||
import DeleteIconBtn from '../../../common/components/buttons/DeleteIconBtn';
|
||||
import style from './Block.module.css';
|
||||
@@ -8,7 +6,7 @@ export default function BlockBlock(props) {
|
||||
const { eventsHandler, index, data } = props;
|
||||
|
||||
const addHandler = () => {
|
||||
eventsHandler('add', { type: 'block', order: index + 1 });
|
||||
eventsHandler('add', { type: 'event', order: index + 1 });
|
||||
};
|
||||
const deleteHandler = () => {
|
||||
eventsHandler('delete', data.id);
|
||||
|
||||
Reference in New Issue
Block a user