Skip to content

Commit

Permalink
Reduce whitespace in ItemView
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Campbell committed Oct 22, 2020
1 parent aa9c255 commit 32c0963
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/components/ItemView/ItemView.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
import React from 'react';
import PropTypes from "prop-types";
import { Paper, makeStyles } from '@material-ui/core';
import { Paper, makeStyles, useTheme } from '@material-ui/core';
import ItemMetadataView from "../ItemMetadataView/"
import ItemBodyView from "../ItemBodyView";

export default function ItemView(props){

const useStyles = makeStyles((theme) => ({
const theme = useTheme();
const useStyles = makeStyles({
"paperPadding": {
padding: theme.spacing(2),
paddingTop: theme.spacing(1),
paddingLeft: theme.spacing(2),
paddingRight: theme.spacing(2),
border: "none"
}
}));

});
const classes = useStyles();

return(
<Paper classes={{root: classes.paperPadding}} square>
<Paper variant="outlined" classes={{root: classes.paperPadding}} square>
<ItemMetadataView item={props.activeItem} />
<ItemBodyView item={props.activeItem } />
</Paper>
Expand Down

0 comments on commit 32c0963

Please sign in to comment.