aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-10-08 13:28:24 +0300
committereug-vs <eug-vs@keemail.me>2020-10-08 13:28:24 +0300
commitcc9c17a86cefd0460ccba7aeda7c0b57efe0ccb1 (patch)
tree89a89298751846d4018d880a7dba2fdf06334d78
parent3ec8fb942f09e29020f6e466932ed0cca7db3d69 (diff)
downloadwhich-ui-cc9c17a86cefd0460ccba7aeda7c0b57efe0ccb1.tar.gz
feat: stick all headers to same logic
-rw-r--r--src/components/ModalScreen/ModalScreen.tsx8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/components/ModalScreen/ModalScreen.tsx b/src/components/ModalScreen/ModalScreen.tsx
index c6044af..4a4b1be 100644
--- a/src/components/ModalScreen/ModalScreen.tsx
+++ b/src/components/ModalScreen/ModalScreen.tsx
@@ -28,6 +28,7 @@ const useStyles = makeStyles(theme => ({
},
toolbar: {
display: 'flex',
+ justifyContent: 'space-between'
}
}));
@@ -35,7 +36,7 @@ const Transition = React.forwardRef(function Transition(
props: TransitionProps & { children?: React.ReactElement<any, any> },
ref: React.Ref<unknown>,
) {
- return <Slide direction="up" ref={ref} {...props} />;
+ return <Slide direction="left" ref={ref} {...props} />;
});
const ModalScreen: React.FC<PropTypes> = ({ title, children }) => {
@@ -59,12 +60,15 @@ const ModalScreen: React.FC<PropTypes> = ({ title, children }) => {
>
<AppBar position="static">
<Toolbar className={classes.toolbar}>
- <IconButton edge="start" onClick={handleClose}>
+ <IconButton onClick={handleClose}>
<CloseIcon />
</IconButton>
<Typography variant="h6">
{ title }
</Typography>
+ <IconButton style={{ opacity: 0, pointerEvents: 'none' }}>
+ <CloseIcon />
+ </IconButton>
</Toolbar>
</AppBar>
<Divider />