Commit 7c003df3 authored by Imane Misrar's avatar Imane Misrar
Browse files

refacto(LastVisitedUniversity): improve style with sticky position

Closes #149
parent 9ff13c60
......@@ -5,6 +5,7 @@ import InputLabel from "@material-ui/core/InputLabel";
import FormControl from "@material-ui/core/FormControl";
import Select from "@material-ui/core/Select";
import MenuItem from "@material-ui/core/MenuItem";
import Box from "@material-ui/core/Box";
import PropTypes from "prop-types";
import { withRouter } from "react-router-dom";
import APP_ROUTES from "../../config/appRoutes";
......@@ -35,7 +36,6 @@ function LastVisitedUniversity({ location, lastVisitedUniversities }) {
const classes = useStyles();
if (
location.pathname === APP_ROUTES.base ||
location.pathname === APP_ROUTES.themeSettings ||
location.pathname === APP_ROUTES.myExchanges ||
location.pathname === APP_ROUTES.editPreviousExchangeWithParams ||
......@@ -55,9 +55,9 @@ function LastVisitedUniversity({ location, lastVisitedUniversities }) {
};
return (
<div>
<FormControl className={classes.formControl}>
<InputLabel id="select-last-visitied-university-label">
<Box className={classes.formControl} boxShadow={1}>
<FormControl>
<InputLabel shrink id="select-last-visitied-university-label">
Dernières universités visitées
</InputLabel>
<Select
......@@ -74,7 +74,7 @@ function LastVisitedUniversity({ location, lastVisitedUniversities }) {
</Select>
<LicenseNotice variant="REX-DRI—PRIVATE" spacer={false} />
</FormControl>
</div>
</Box>
);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment