Skip to content

Commit

Permalink
Update EmailHeader usages
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Campbell committed Oct 21, 2020
1 parent d3eaf57 commit 7b9f9ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/components/ItemBodyView/ItemBodyView.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ export default function ItemBodyView({ item }) {
case "initial_message":
return (
<>
<EmailHeader name={section.userName} date={section.datetime} email={section.userEmail} />
{console.log("Initial Message: ", section)}
<EmailHeader {...section} />
{section.content.map((line, index) => <Typography variant="body1">{line}</Typography>)}
</>
);
Expand Down
2 changes: 1 addition & 1 deletion src/components/ItemMetadataView/ItemMetadataView.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default function ItemMetadataView({item}){
{item.subject}
</Typography>

<EmailHeader name={item.userName} date={item.dateReceived} email={item.userEmail} />
<EmailHeader from_name={item.userName} datetime={item.dateReceived} from_email={item.userEmail} />

<Alert severity="info" classes={{root: classes.verticalSpacing}}>
Status, assignments, priority, refile, archive and delete controls coming soon to a theater near you.
Expand Down

0 comments on commit 7b9f9ce

Please sign in to comment.