Skip to content

Commit

Permalink
Update TimelineActionCard PropTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
campb303 committed Apr 19, 2021
1 parent 79f861d commit 5c69e11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/TimelineActionCard/TimelineActionCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,12 @@ export default function TimelineActionCard({ type, datetime, by, content }){
}

TimelineActionCard.propTypes = {
/** The type of card to render. */
"type": PropTypes.oneOf([
"edit",
"reply_to_user"
]),
/** ISO 8601 formatted time string. */
/** Any string, number or Date object understood by React Relative Time. See https://github.com/aharshac/react-relative-time#readme. */
"datetime": PropTypes.string.isRequired,
/** The name of the person who added the action. */
"by": PropTypes.string.isRequired,
Expand Down

0 comments on commit 5c69e11

Please sign in to comment.