Skip to content

Commit

Permalink
Use TimelineActionCard for status
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Campbell committed Oct 23, 2020
1 parent 4670f69 commit 014ad96
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/components/ItemBodyView/ItemBodyView.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";
import PropTypes from "prop-types";
import { Timeline, TimelineItem, TimelineSeparator, TimelineConnector, TimelineContent, TimelineDot } from '@material-ui/lab';
import { Typography, makeStyles } from "@material-ui/core";
import { makeStyles } from "@material-ui/core";
import DirectoryInformation from "../DirectoryInformation/";
import Assignment from "../Assignment/";
import TimelineActionCard from "../TimelineActionCard/";
Expand Down Expand Up @@ -36,22 +36,15 @@ export default function ItemBodyView({ item }) {
);
case "initial_message":
return (
<>
<MessageView {...section} />
</>
<MessageView {...section} />
);
case "edit":
return (
<TimelineActionCard {...section} />
);
case "status":
return (
<>
<Typography variant="subtitle2">
{`${section.by} update the status to at ${Date(section.datetime)}`}
</Typography>
{section.content.map((line) => <Typography variant="body1">{line}</Typography>)}
</>
<TimelineActionCard {...section} />
);
case "assignment":
return (
Expand Down

0 comments on commit 014ad96

Please sign in to comment.