mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
Update landing-hero-github-stars.tsx
This commit is contained in:
parent
79dc74d444
commit
6b9a5a0570
@ -3,7 +3,7 @@ import clsx from 'clsx';
|
|||||||
import { OrangeStarIcon } from './icons/orange-star';
|
import { OrangeStarIcon } from './icons/orange-star';
|
||||||
|
|
||||||
export const LandingHeroGithubStars = () => {
|
export const LandingHeroGithubStars = () => {
|
||||||
const [version, setVersion] = useState('1.0.0'); // Default version
|
const [version, setVersion] = useState('1.1.4'); // Default version
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
// Function to fetch the latest version tag from Docker Hub
|
// 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
|
// 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
|
setVersion(latestVersion); // Update the version state
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Failed to fetch version:', error);
|
console.error('Failed to fetch version:', error);
|
||||||
|
Loading…
Reference in New Issue
Block a user