Update landing-hero-github-stars.tsx

This commit is contained in:
Stefan Pejcic 2025-03-17 18:03:12 +01:00 committed by GitHub
parent 79dc74d444
commit 6b9a5a0570
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,7 +3,7 @@ import clsx from 'clsx';
import { OrangeStarIcon } from './icons/orange-star';
export const LandingHeroGithubStars = () => {
const [version, setVersion] = useState('1.0.0'); // Default version
const [version, setVersion] = useState('1.1.4'); // Default version
useEffect(() => {
// Function to fetch the latest version tag from Docker Hub
@ -27,7 +27,7 @@ export const LandingHeroGithubStars = () => {
});
// Get the latest version from the sorted list
const latestVersion = filteredTags.length > 0 ? filteredTags[0] : '1.0.0'; // Default to '1.0.0' if no valid version found
const latestVersion = filteredTags.length > 0 ? filteredTags[0] : '1.1.4'; // new verzija tag
setVersion(latestVersion); // Update the version state
} catch (error) {
console.error('Failed to fetch version:', error);