Skip to content

Commit

Permalink
Add status option for TimelineActionCard
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Campbell committed Oct 23, 2020
1 parent b807be4 commit 4670f69
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/components/TimelineActionCard/TimelineActionCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ export default function TimelineActionCard({ type, datetime, by, content }){
"reply_to_user": {
"verbage": "replied",
"coloring": theme.palette.reply_to_user.main
},
"status": {
"verbage": "updated the status",
"coloring": theme.palette.status.main
}
}

Expand Down Expand Up @@ -54,9 +58,9 @@ TimelineActionCard.propTypes = {
]),
/** ISO 8601 formatted time string. */
"datetime": PropTypes.string.isRequired,
/** The name of the person who added the edit. */
/** The name of the person who added the action. */
"by": PropTypes.string.isRequired,
/** An array of strings containing the content of the edit. */
/** An array of strings containing the content of the action. */
"content": PropTypes.array.isRequired
};

Expand Down
2 changes: 1 addition & 1 deletion src/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function theme(darkMode = false) {
"reply_to_user": {
main: "rgba(99, 125, 255, 0.2)",
},
"reply_from_user": {
"status": {
main: "rgba(99, 255, 151, 0.2)",
}
},
Expand Down

0 comments on commit 4670f69

Please sign in to comment.