fleet/frontend/components/loaders/Timer/Timer.jsx
Zachary Wasserman dc4b97d15f
Fix React deprecation warnings (#1976)
- Refactor imports of PropTypes to use the prop-types package
- Upgrade dependencies that were setting off deprecation warnings
2019-01-06 17:25:33 -08:00

22 lines
447 B
JavaScript

import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { convertSeconds } from './helpers';
const baseClass = 'kolide-timer';
class Timer extends Component {
static propTypes = {
totalMilliseconds: PropTypes.number,
}
render () {
const { totalMilliseconds } = this.props;
return (
<span className={baseClass}>{convertSeconds(totalMilliseconds)}</span>
);
}
}
export default Timer;