nci/static/js/app/components/common/duration/index.js
Vladimir Polyakov d33e8c7cb2 fix seconds
2015-07-26 16:14:57 +03:00

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
}
}
});
});