mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
- Refactor imports of PropTypes to use the prop-types package - Upgrade dependencies that were setting off deprecation warnings
22 lines
447 B
JavaScript
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;
|