We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ea68aa commit 88afd70Copy full SHA for 88afd70
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "notabug",
3
- "version": "0.8.23",
+ "version": "0.8.24",
4
"dependencies": {
5
"@trust/webcrypto": "^0.9.2",
6
"babel-cli": "^6.26.0",
src/components/notabug/Timestamp.js
@@ -1,4 +1,11 @@
-import React from "react";
+import React, { PureComponent } from "react";
import TimeAgo from "react-timeago";
-export const Timestamp = ({ created_utc }) => (created_utc && <TimeAgo date={created_utc * 1000} />) || null;
+class PureTimestamp extends PureComponent {
+ render () {
+ const { created_utc } = this.props;
7
+ return (created_utc && <TimeAgo date={created_utc * 1000} />) || null;
8
+ }
9
+}
10
+
11
+export const Timestamp = ({ created_utc }) => <PureTimestamp created_utc={created_utc} />;
0 commit comments