fix(phone/messages): fix posiston for Fab

This commit is contained in:
Christopher committed 2021-02-17 20:15:14 +01:00
1 parent f765f35b8c
commit a3fa095f9f
2 files changed
+11 -9

No files matched your search

@@ -36,9 +36,6 @@ export const MessagesApp = () => {
render={() => (
<>
<MessagesList />
<NewMessageGroupButton
onClick={() => history.push('/messages/new')}
/>
</>
)}
/>
@@ -51,6 +48,9 @@ export const MessagesApp = () => {
/>
</Switch>
</AppContent>
<NewMessageGroupButton
onClick={() => history.push('/messages/new')}
/>
<AlertBar />
</AppWrapper>
);
@@ -3,11 +3,11 @@ import { makeStyles } from '@material-ui/core/styles';
import { Fab } from '@material-ui/core';
import AddIcon from '@material-ui/icons/Add';
const useStyles = makeStyles(() => ({
const useStyles = makeStyles((theme) => ({
root: {
position: 'absolute',
bottom: '25px',
right: '15px',
bottom: theme.spacing(2),
right: theme.spacing(3),
},
}));
@@ -21,11 +21,13 @@ export function NewMessageGroupButton({
const classes = useStyles();
return (
<div className={classes.root}>
<Fab color='primary' onClick={onClick}>
<Fab
className={classes.root}
color='primary'
onClick={onClick}
>
<AddIcon />
</Fab>
</div>
);
}