bugfix: event handler

This commit is contained in:
cv
2021-04-10 23:12:00 +02:00
parent 4271b27686
commit 5bb39b8f89
11 changed files with 20 additions and 31 deletions
@@ -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);