bugfix: event order

+ bug caused by earlier commit making function async
+ small style changes
+ bug on prev - next
This commit is contained in:
cv
2021-04-24 12:46:38 +02:00
parent 75b8e9b8be
commit b95ba56f45
7 changed files with 42 additions and 46 deletions
@@ -7,6 +7,7 @@ import EditableText from '../../../common/input/EditableText';
import DelayValue from '../../../common/input/DelayValue';
import ActionButtons from './ActionButtons';
import VisibleIconBtn from '../../../common/components/buttons/VisibleIconBtn';
import DeleteIconBtn from '../../../common/components/buttons/DeleteIconBtn';
export default function EventBlock(props) {
const { data, selected, delay, index, eventsHandler } = props;
@@ -115,16 +116,14 @@ export default function EventBlock(props) {
clickHandler={() => setVisible(!visible)}
active={visible}
/>
<DeleteIconBtn clickHandler={deleteHandler} />
<ActionButtons
showDel
deleteHandler={deleteHandler}
showAdd
addHandler={addHandler}
showDelay
delayHandler={delayHandler}
showBlock
blockHandler={blockHandler}
showPublic
/>
</div>
</div>