refract: cleanup

This commit is contained in:
cv
2021-04-10 11:29:42 +02:00
parent dcd818085f
commit f06bbc668d
7 changed files with 47 additions and 39 deletions
+3 -1
View File
@@ -11,10 +11,12 @@ import {
import style from './EventListMenu.module.css';
export default function EventListMenu(props) {
const { eventsHandler } = props;
const buttonProps = {
size: 'sm',
variant: 'outline',
};
return (
<div className={style.headerButtons}>
<Menu>
@@ -47,7 +49,7 @@ export default function EventListMenu(props) {
size='sm'
icon={<AddIcon />}
colorScheme='blue'
onClick={() => props.createEvent()}
onClick={() => eventsHandler('add', { type: 'event', order: 0 })}
/>
</div>
);