Update landing-hero-github-stars.tsx

This commit is contained in:
Stefan Pejcic 2025-04-09 15:35:48 +02:00 committed by GitHub
parent d339ce62b8
commit b889d1f29a
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.1.4'); // Default version
const [version, setVersion] = useState('1.2.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.1.4'; // new verzija tag
const latestVersion = filteredTags.length > 0 ? filteredTags[0] : '1.2.0'; // new verzija tag
setVersion(latestVersion); // Update the version state
} catch (error) {
console.error('Failed to fetch version:', error);