From cbb5a320802031c102818f8221d853f8181b54f3 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Fri, 8 Jul 2022 16:36:57 -0700 Subject: Align clear buttons --- modern/src/main/EventsDrawer.js | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/modern/src/main/EventsDrawer.js b/modern/src/main/EventsDrawer.js index 1843b46f..d6b616ef 100644 --- a/modern/src/main/EventsDrawer.js +++ b/modern/src/main/EventsDrawer.js @@ -1,7 +1,7 @@ import React from 'react'; import { useDispatch, useSelector } from 'react-redux'; import { - Button, Drawer, IconButton, List, ListItem, ListItemText, Toolbar, Typography, + Drawer, IconButton, List, ListItem, ListItemText, Toolbar, Typography, } from '@mui/material'; import { makeStyles } from '@mui/styles'; import DeleteIcon from '@mui/icons-material/Delete'; @@ -12,7 +12,11 @@ const useStyles = makeStyles((theme) => ({ drawer: { width: theme.dimensions.eventsDrawerWidth, }, - header: { + toolbar: { + paddingLeft: theme.spacing(2), + paddingRight: theme.spacing(2), + }, + title: { flexGrow: 1, }, })); @@ -30,13 +34,13 @@ const EventsDrawer = ({ open, onClose }) => { open={open} onClose={onClose} > - - + + {t('reportEvents')} - + dispatch(eventsActions.deleteAll())}> + + {events.map((event) => ( -- cgit v1.2.3