Update landing-hero-github-stars.tsx

This commit is contained in:
Stefan Pejcic 2025-06-12 19:47:23 +02:00 committed by GitHub
parent e036b9a0c2
commit 9e5c1c1d94
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.3.6'); // Default version
const [version, setVersion] = useState('1.4.0'); // 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.3.5'; // new verzija tag
const latestVersion = filteredTags.length > 0 ? filteredTags[0] : '1.4.0'; // new verzija tag
setVersion(latestVersion); // Update the version state
} catch (error) {
console.error('Failed to fetch version:', error);