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
3adbb63825
commit
7734aed900
@ -3,13 +3,13 @@ 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('0.2'); // Default version
|
const [version, setVersion] = useState('0.3.0'); // Default version
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
// Function to fetch version information
|
// Function to fetch version information
|
||||||
const fetchVersion = async () => {
|
const fetchVersion = async () => {
|
||||||
try {
|
try {
|
||||||
const response = await fetch('https://get.openpanel.co/version');
|
const response = await fetch('https://openpanel.org/version');
|
||||||
const data = await response.text();
|
const data = await response.text();
|
||||||
setVersion(data.trim()); // Update the version state
|
setVersion(data.trim()); // Update the version state
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user