mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2024-12-23 09:30:31 +03:00
Update ShlinkVersions.js
This commit is contained in:
parent
c4730ec92d
commit
ea84ce9c41
1 changed files with 3 additions and 3 deletions
|
@ -17,12 +17,12 @@ const propTypes = {
|
|||
const ShlinkVersions = ({ selectedServer, className, clientVersion = SHLINK_WEB_CLIENT_VERSION }) => {
|
||||
const { printableVersion: serverVersion } = selectedServer;
|
||||
const normalizedClientVersion = pipe(versionToSemVer(), versionToPrintable)(clientVersion);
|
||||
const linkClientVersion = () => (<div><ExternalLink href="https://github.com/shlinkio/shlink-web-client/releases/"><b>normalizedClientVersion</b></ExternalLink></div>);
|
||||
const linkServerVersion = () => (<div><ExternalLink href="https://github.com/shlinkio/shlink/releases/"><b>serverVersion</b></ExternalLink></div>);
|
||||
const linkClientVersion = () => (<div><ExternalLink className="text-muted" href="https://github.com/shlinkio/shlink-web-client/releases/"><b>normalizedClientVersion</b></ExternalLink></div>);
|
||||
const linkServerVersion = () => (<div><ExternalLink className="text-muted" href="https://github.com/shlinkio/shlink/releases/"><b>serverVersion</b></ExternalLink></div>);
|
||||
|
||||
return (
|
||||
<small className={classNames('text-muted', className)}>
|
||||
Client: <b className="text-muted">{linkClientVersion}</b> - Server: <b className="text-muted">{linkServerVersion}</b>
|
||||
Client: {linkClientVersion} - Server: {linkServerVersion}
|
||||
</small>
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue