Skip to content

Commit

Permalink
exampleUrl -> namedParams + minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmelnikow authored Jan 4, 2019
1 parent 5a5c784 commit 45e85a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions services/date/date.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const BaseService = require('../base')
const { formatRelativeDate } = require('../../lib/text-formatters')

const docs = `
const documentation = `
<p>
Supply a unix timestamp in seconds to display the relative time from/to now
</p>
Expand Down Expand Up @@ -45,10 +45,10 @@ module.exports = class Date extends BaseService {
{
title: 'Relative date',
pattern: ':timestamp',
exampleUrl: '1540814400',
namedParams: { timestamp: '1540814400' },
staticExample: this.render({ relativeDateString: '2 days ago' }),
keywords: ['date', 'time', 'countdown', 'countup', 'moment'],
documentation: docs,
documentation,
},
]
}
Expand Down

0 comments on commit 45e85a7

Please sign in to comment.