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
d339ce62b8
commit
b889d1f29a
@ -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.1.4'); // Default version
|
const [version, setVersion] = useState('1.2.0'); // 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.1.4'; // new verzija tag
|
const latestVersion = filteredTags.length > 0 ? filteredTags[0] : '1.2.0'; // 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