Skip to content

Commit

Permalink
Formatting checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Campbell committed Oct 15, 2020
1 parent 499108d commit 673076d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/components/ItemViewAppBar/ItemViewAppBar.js
Original file line number Diff line number Diff line change
@@ -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)
Expand All @@ -26,13 +26,13 @@ export default function ItemViewAppBar({ title, theme, setSidebarOpen }){

const classes = useStyles(theme);

return(
return (
<>
<AppBar position="fixed" color="secondary" elevation={2} classes={{root: classes.appBarRoot}}>
<AppBar position="fixed" color="secondary" elevation={2} classes={{ root: classes.appBarRoot }}>

<Toolbar variant="dense">
<Tooltip title={"Close Item"}
arrow
<Tooltip title={"Close Item"}
arrow
onClick={() => setSidebarOpen(false)}
TransitionComponent={Zoom}
>
Expand All @@ -46,7 +46,7 @@ export default function ItemViewAppBar({ title, theme, setSidebarOpen }){
</Typography>
</Toolbar>
</AppBar>
<Toolbar variant="dense"/>
<Toolbar variant="dense" />
</>
);
}
Expand Down

0 comments on commit 673076d

Please sign in to comment.