Skip to content

Commit

Permalink
Update ItemView to user new ItemBodyView component
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Campbell committed Sep 21, 2020
1 parent 2b43ead commit 731f8e3
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/components/ItemView/ItemView.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import React from 'react';
import PropTypes from "prop-types";
import { Paper, Typography, makeStyles } from '@material-ui/core';
import { Paper, makeStyles } from '@material-ui/core';
import ItemMetadataView from "../ItemMetadataView/"
import ItemBodyView from "../ItemBodyView";

export default function ItemView(props){

Expand All @@ -15,14 +16,8 @@ export default function ItemView(props){

return(
<Paper classes={{root: classes.paperPadding}} square>

<ItemMetadataView item={props.activeItem} />

{props.activeItem["content"] ? props.activeItem["content"].map(line => (
<Typography variant="body1" paragraph>
{line}
</Typography>
)): "" }
<ItemBodyView item={props.activeItem } />
</Paper>
);
};
Expand Down

0 comments on commit 731f8e3

Please sign in to comment.