diff --git a/src/components/LastUpdatedCell/LastUpdatedCell.js b/src/components/LastUpdatedCell/LastUpdatedCell.js index 735461a..6729508 100644 --- a/src/components/LastUpdatedCell/LastUpdatedCell.js +++ b/src/components/LastUpdatedCell/LastUpdatedCell.js @@ -58,7 +58,7 @@ export default function LastUpdatedCell({ time, ItemTableCellProps }) { }; LastUpdatedCell.propTypes = { - /** ISO 8601 formatted time string. */ + /** ISO 8601 formatted time string, Date object or UNIX time. See: https://www.npmjs.com/package/react-relative-time */ "time": PropTypes.string.isRequired, /** Props to be applied to the ItemTableCell. */ "ItemTableCellProps": PropTypes.object, diff --git a/src/components/LastUpdatedCell/LastUpdatedCell.md b/src/components/LastUpdatedCell/LastUpdatedCell.md index a0b202e..ce823a5 100644 --- a/src/components/LastUpdatedCell/LastUpdatedCell.md +++ b/src/components/LastUpdatedCell/LastUpdatedCell.md @@ -1,4 +1,6 @@ -The LastUpdatedCell wraps an [ItemTableCell](/#/Components/ItemTableCell) and changes its background color based on the time passed to it to indicate how old an item is. +A table cell that takes a time value and returns a relative time with a background color to indicate how old an item is. + +The LastUpdatedCell wraps an [ItemTableCell](/#/Components/ItemTableCell) ## Default Usage ```jsx