Address some review comments

This commit is contained in:
Aarni Koskela
2019-10-24 17:34:20 +03:00
parent 959d6b86c5
commit f01bea2704
2 changed files with 4 additions and 7 deletions

View File

@@ -1,8 +1,9 @@
import _ from "lodash";
import React from "react";
import request from "axios";
import _ from "lodash";
import transformers from "./feed-transformers";
import timeago from "timeago";
import api from "./api";
import transformers from "./feed-transformers";
function throwError(err) {
setTimeout(() => {
@@ -65,7 +66,7 @@ export default class Feed extends React.Component {
</div>
<div className="message__details">
<span className="message__timestamp">
{require("timeago")(message.timestamp)}
{timeago(message.timestamp)}
</span>
<span className="message__meta">{message.meta}</span>
</div>

View File

@@ -1,13 +1,9 @@
"use strict";
import _ from "lodash";
import request from "axios";
import React from "react";
import classSet from "classnames";
import api from "../api";
import Loader from "../Loader";
//import configFactory from "../../config.js";
//const config = configFactory();
var fieldNameTranslations = {
address: { fi: "Osoite" },