0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-14 21:32:41 +00:00

Add Last Updated field and nudge styling

This commit is contained in:
G.Ambatte
2023-03-15 11:46:27 +13:00
parent a3f93c2602
commit 1126481d53
3 changed files with 7 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
const React = require('react');
const createClass = require('create-react-class');
const _ = require('lodash');
const Moment = require('moment');
const Nav = require('naturalcrit/nav/nav.jsx');
@@ -54,6 +55,8 @@ const MetadataNav = createClass({
<p>{this.getTags()}</p>
<h4>Systems</h4>
<p>{this.getSystems()}</p>
<h4>Last Updated</h4>
<p>{Moment(this.props.brew.updatedAt).fromNow()}</p>
</div>;
},