diff --git a/src/components/LastUpdatedCell/LastUpdatedCell.js b/src/components/LastUpdatedCell/LastUpdatedCell.js
index 48e0c7e..8ffc778 100644
--- a/src/components/LastUpdatedCell/LastUpdatedCell.js
+++ b/src/components/LastUpdatedCell/LastUpdatedCell.js
@@ -4,51 +4,51 @@ import { red } from '@material-ui/core/colors';
import RelativeTime from 'react-relative-time';
import ItemTableCell from '../ItemTableCell';
-export default function LastUpdatedCell ({ time, reactTableCellProps, classes }){
- const lastUpdated = new Date(time).getTime();
- const now = new Date().getTime();
- const timeDelta = now - lastUpdated;
- const day = 24 * 60 * 60 * 1000;
- const week = day * 7;
- const month = week * 4;
+export default function LastUpdatedCell({ time, reactTableCellProps, classes }) {
+ const lastUpdated = new Date(time).getTime();
+ const now = new Date().getTime();
+ const timeDelta = now - lastUpdated;
+ const day = 24 * 60 * 60 * 1000;
+ const week = day * 7;
+ const month = week * 4;
- let backgroundColor = "white";
- if (timeDelta > day && timeDelta <= week) {
- backgroundColor = red[100]
- }
- else if (timeDelta > week && timeDelta <= month) {
- backgroundColor = red[300]
- }
- else if (timeDelta > month) {
- backgroundColor = red[500]
- }
+ let backgroundColor = "white";
+ if (timeDelta > day && timeDelta <= week) {
+ backgroundColor = red[100]
+ }
+ else if (timeDelta > week && timeDelta <= month) {
+ backgroundColor = red[300]
+ }
+ else if (timeDelta > month) {
+ backgroundColor = red[500]
+ }
- return (
-
-
-
- );
+ return (
+
+
+
+ );
}
LastUpdatedCell.propTypes = {
- /** Time value in ISO8601. */
- "time": PropTypes.string,
- /** Props passed from ItemTable. */
- "reactTableProps": PropTypes.object,
- /**Object that passes classes to the component. */
- "classes": PropTypes.object,
+ /** Time value in ISO8601. */
+ "time": PropTypes.string,
+ /** Props passed from ItemTable. */
+ "reactTableProps": PropTypes.object,
+ /**Object that passes classes to the component. */
+ "classes": PropTypes.object,
};
LastUpdatedCell.defaultProps = {
- "time": "",
- "reactTableProps": {},
- "classes": {},
+ "time": "",
+ "reactTableProps": {},
+ "classes": {},
};
\ No newline at end of file