mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 14:38:45 +00:00
fix(phone/messages): fix posiston for Fab
This commit is contained in:
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>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user