Skip to content

Commit

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

export default function ItemBodyView({ item }) {
Expand Down Expand Up @@ -59,9 +60,7 @@ export default function ItemBodyView({ item }) {
);
case "assignment":
return (
<>
<Typography>{`${section.by} assigned to ${section.to}`}</Typography>
</>
<Assignment {...section} />
);
case "reply_to_user":
return (
Expand Down

0 comments on commit e6da823

Please sign in to comment.