work on caste load
This commit is contained in:
19
src/CastesLinks.tsx
Normal file
19
src/CastesLinks.tsx
Normal file
@@ -0,0 +1,19 @@
|
||||
import { useEffect, useState } from "react";
|
||||
import { LinkGroup } from "./App";
|
||||
|
||||
export const CastesLinks = () => {
|
||||
const [loading, setLoading] = useState(true);
|
||||
const links = [{ name: "GPAO", link: "http://gpao.lan" }];
|
||||
|
||||
useEffect(() => {
|
||||
testConnection();
|
||||
}, []);
|
||||
|
||||
const testConnection = async () => {
|
||||
try {
|
||||
const res = await fetch("http://gpao.lan");
|
||||
console.log("link", res);
|
||||
} catch (error) {}
|
||||
};
|
||||
return <LinkGroup title="Castes" links={links} />;
|
||||
};
|
||||
Reference in New Issue
Block a user