From e3724defce7d3c3f62f239fc2673160d02343a7a Mon Sep 17 00:00:00 2001 From: Justin Campbell Date: Thu, 21 Jan 2021 13:14:07 -0500 Subject: [PATCH] Make time prop required --- src/components/LastUpdatedCell/LastUpdatedCell.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/LastUpdatedCell/LastUpdatedCell.js b/src/components/LastUpdatedCell/LastUpdatedCell.js index 6fbbc81..735461a 100644 --- a/src/components/LastUpdatedCell/LastUpdatedCell.js +++ b/src/components/LastUpdatedCell/LastUpdatedCell.js @@ -59,12 +59,11 @@ export default function LastUpdatedCell({ time, ItemTableCellProps }) { LastUpdatedCell.propTypes = { /** ISO 8601 formatted time string. */ - "time": PropTypes.string, + "time": PropTypes.string.isRequired, /** Props to be applied to the ItemTableCell. */ "ItemTableCellProps": PropTypes.object, }; LastUpdatedCell.defaultProps = { - "time": "", "ItemTableCellProps": {}, }; \ No newline at end of file