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