Moved shlink versions to the outer element so that's always visible

This commit is contained in:
Alejandro Celaya
2020-09-06 12:36:17 +02:00
parent 90abf29db9
commit b814f500de
12 changed files with 152 additions and 426 deletions

View File

@@ -14,12 +14,7 @@ export interface ShlinkVersionsProps {
className?: string;
}
interface VersionLinkProps {
project: 'shlink' | 'shlink-web-client';
version: string;
}
const VersionLink = ({ project, version }: VersionLinkProps) => (
const VersionLink = ({ project, version }: { project: 'shlink' | 'shlink-web-client'; version: string }) => (
<ExternalLink href={`https://github.com/shlinkio/${project}/releases/${version}`} className="text-muted">
<b>{version}</b>
</ExternalLink>