Skip to content

Commit

Permalink
Replace Edit w/ TimelineActionCard
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Campbell committed Oct 22, 2020
1 parent 03129f0 commit 4396c9c
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/components/ItemBodyView/ItemBodyView.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Timeline, TimelineItem, TimelineSeparator, TimelineConnector, TimelineC
import { Typography, makeStyles } from "@material-ui/core";
import DirectoryInformation from "../DirectoryInformation/";
import Assignment from "../Assignment/";
import Edit from "../Edit/";
import TimelineActionCard from "../TimelineActionCard/";
import MessageView from "../MessageView/";
import { objectIsEmpty } from "../../utilities";

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

0 comments on commit 4396c9c

Please sign in to comment.