Skip to content

Commit 4b5269b

Browse files
committed
List for added_at formatting
1 parent 2397c2a commit 4b5269b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/js/components/List.js

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { Link, hashHistory } from 'react-router'
44
import FontAwesome from 'react-fontawesome'
55

66
import ArtistSentence from './ArtistSentence'
7+
import Dater from './Dater'
78

89
import * as helpers from '../helpers'
910

@@ -49,6 +50,7 @@ export default class List extends React.Component{
4950
}
5051
}
5152

53+
if (key_string === 'added_at') return <span><Dater type="ago" data={value} /> ago</span>
5254
if (key_string === 'owner') return <Link to={global.baseURL+'user/'+ value.uri}>{value.id}</Link>
5355
if (key[0] === 'artists') return <ArtistSentence artists={value} />
5456
if (value === true) return <FontAwesome name="check" />

0 commit comments

Comments
 (0)