Update ShlinkVersions.js

This commit is contained in:
MartinH0 2020-07-09 12:58:10 +02:00 committed by GitHub
parent d46acdbd70
commit 1c335506d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,6 +4,7 @@ import classNames from 'classnames';
import { pipe } from 'ramda'; import { pipe } from 'ramda';
import { serverType } from '../servers/prop-types'; import { serverType } from '../servers/prop-types';
import { versionToPrintable, versionToSemVer } from '../utils/helpers/version'; import { versionToPrintable, versionToSemVer } from '../utils/helpers/version';
import { ExternalLink } from 'react-external-link';
const SHLINK_WEB_CLIENT_VERSION = '%_VERSION_%'; const SHLINK_WEB_CLIENT_VERSION = '%_VERSION_%';
@ -19,7 +20,7 @@ const ShlinkVersions = ({ selectedServer, className, clientVersion = SHLINK_WEB_
return ( return (
<small className={classNames('text-muted', className)}> <small className={classNames('text-muted', className)}>
Client: <a href="https://github.com/shlinkio/shlink-web-client/releases" rel="noopener noreferrer"><b>{normalizedClientVersion}</b></a> - Server: <a href="https://github.com/shlinkio/shlink/releases" rel="noopener noreferrer"><b>{serverVersion}</b></a> Client: <ExternalLink href={`https://github.com/shlinkio/shlink-web-client/releases/`} className="text-muted"><b>{normalizedClientVersion}</b></ExternalLink> - Server: <ExternalLink href={`https://github.com/shlinkio/shlink/releases/`} className="text-muted"><b>{serverVersion}</b></ExternalLink>
</small> </small>
); );
}; };