Skip to content

Commit

Permalink
Started using ParseError
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Campbell committed Oct 23, 2020
1 parent c1a1581 commit bfc0bd0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/ItemBodyView/ItemBodyView.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import DirectoryInformation from "../DirectoryInformation/";
import Assignment from "../Assignment/";
import TimelineActionCard from "../TimelineActionCard/";
import MessageView from "../MessageView/";
import ParseError from "../ParseError/";
import { objectIsEmpty } from "../../utilities";

export default function ItemBodyView({ item }) {
Expand Down Expand Up @@ -44,6 +45,8 @@ export default function ItemBodyView({ item }) {
return <TimelineActionCard {...section} />
case "reply_from_user":
return <MessageView {...section} />
case "parse_error":
return <ParseError {...section} />
default:
return `No match found for type: ${section.type}`;
};
Expand Down

0 comments on commit bfc0bd0

Please sign in to comment.