diff --git a/src/components/ItemViewAppBar/ItemViewAppBar.js b/src/components/ItemViewAppBar/ItemViewAppBar.js index 9e7240d..670828b 100644 --- a/src/components/ItemViewAppBar/ItemViewAppBar.js +++ b/src/components/ItemViewAppBar/ItemViewAppBar.js @@ -1,10 +1,10 @@ import React, { useEffect } from "react"; import PropTypes from "prop-types"; -import {makeStyles, Tooltip, Typography, AppBar, Toolbar, IconButton, Zoom} from "@material-ui/core" +import { makeStyles, Tooltip, Typography, AppBar, Toolbar, IconButton, Zoom } from "@material-ui/core" import CloseItemViewIcon from '@material-ui/icons/ChevronRight'; -export default function ItemViewAppBar({ title, theme, setSidebarOpen }){ +export default function ItemViewAppBar({ title, theme, setSidebarOpen }) { useEffect(() => { setSidebarOpen(true) @@ -26,13 +26,13 @@ export default function ItemViewAppBar({ title, theme, setSidebarOpen }){ const classes = useStyles(theme); - return( + return ( <> - - + + - setSidebarOpen(false)} TransitionComponent={Zoom} > @@ -46,7 +46,7 @@ export default function ItemViewAppBar({ title, theme, setSidebarOpen }){ - + ); }