Skip to content

Commit

Permalink
Start using Edit component in ItemBodyView
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Campbell committed Oct 14, 2020
1 parent 6eece2e commit 4e070b3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/components/ItemBodyView/ItemBodyView.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { Typography, makeStyles } from "@material-ui/core";
import EmailHeader from "../EmailHeader/";
import DirectoryInformation from "../DirectoryInformation/";
import Assignment from "../Assignment/";
import Edit from "../Edit/";
import { objectIsEmpty } from "../../utilities";

export default function ItemBodyView({ item }) {
Expand Down Expand Up @@ -42,12 +43,7 @@ export default function ItemBodyView({ item }) {
);
case "edit":
return (
<>
<Typography variant="subtitle2">
{`${section.by} assigned thisat ${Date(section.datetime)}`}
</Typography>
{section.content.map((line) => <Typography variant="body1">{line}</Typography>)}
</>
<Edit {...section} />
);
case "status":
return (
Expand Down

0 comments on commit 4e070b3

Please sign in to comment.