import { apiErrorPropType } from './util/ApiHelpers.jsx'; import { Link } from 'react-router-dom'; import PropTypes from 'prop-types'; import React from 'react'; import { withContext } from './util/AppContext.jsx'; import './../../css/version.css'; class Version extends React.Component { static defaultProps = { error: null, latestVersion: '', productName: 'controller' } static propTypes = { error: apiErrorPropType, isLatest: PropTypes.bool.isRequired, latestVersion: PropTypes.string, productName: PropTypes.string, releaseVersion: PropTypes.string.isRequired, } renderVersionCheck = () => { const {latestVersion, error, isLatest} = this.props; if (!latestVersion) { return (