mirror of
https://gitlab.silvrtree.co.uk/martind2000/nci.git
synced 2025-01-12 02:35:07 +00:00
18 lines
322 B
JavaScript
18 lines
322 B
JavaScript
'use strict';
|
|
|
|
define([
|
|
'react', 'templates/app/components/common/duration/index'
|
|
], function(React, template) {
|
|
return React.createClass({
|
|
render: template,
|
|
getInitialState: function() {
|
|
var seconds = Math.round(this.props.duration / 1000);
|
|
|
|
return {
|
|
minutes: null,
|
|
seconds: seconds
|
|
}
|
|
}
|
|
});
|
|
});
|