Skip to content

Commit

Permalink
Update LastUpdatedCell PropTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
campb303 committed Apr 19, 2021
1 parent ec11307 commit 9ea0c53
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/LastUpdatedCell/LastUpdatedCell.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default function LastUpdatedCell({ time, ItemTableCellProps }) {
backgroundColor: timeToBackgroundColor(time)
}
};

return (
<ItemTableCell TableCellProps={ItemTableCellProps}>
<RelativeTime value={time} />
Expand All @@ -62,9 +62,9 @@ export default function LastUpdatedCell({ time, ItemTableCellProps }) {
};

LastUpdatedCell.propTypes = {
/** ISO 8601 formatted time string, Date object or UNIX time. See: https://www.npmjs.com/package/react-relative-time */
/** Any string, number or Date object understood by React Relative Time. See https://github.com/aharshac/react-relative-time#readme. */
"time": PropTypes.string.isRequired,
/** Props to be applied to the ItemTableCell. */
/** Props to be applied to the <a href="https://material-ui.com/api/table-cell/">ItemTableCell</a>. */
"ItemTableCellProps": PropTypes.object,
};

Expand Down

0 comments on commit 9ea0c53

Please sign in to comment.