From 731f8e3618dc872d3f549e26c3ba778b751b4a6c Mon Sep 17 00:00:00 2001 From: Justin Campbell Date: Mon, 21 Sep 2020 15:49:35 -0400 Subject: [PATCH] Update ItemView to user new ItemBodyView component --- src/components/ItemView/ItemView.js | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/components/ItemView/ItemView.js b/src/components/ItemView/ItemView.js index 6f8926e..e584207 100644 --- a/src/components/ItemView/ItemView.js +++ b/src/components/ItemView/ItemView.js @@ -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){ @@ -15,14 +16,8 @@ export default function ItemView(props){ return( - - - {props.activeItem["content"] ? props.activeItem["content"].map(line => ( - - {line} - - )): "" } + ); };