Skip to content

Commit

Permalink
Reuse viewTimestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Feldman committed Apr 30, 2018
1 parent 7a3f59f commit 298bfdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Views/Article.elm
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ view toggleFavorite article =
[ img [ UserPhoto.src author.image ] [] ]
, div [ class "info" ]
[ Views.Author.view author.username
, span [ class "date" ] [ text (formattedTimestamp article) ]
, viewTimestamp article
]
, Favorite.button
toggleFavorite
Expand Down

0 comments on commit 298bfdf

Please sign in to comment.