Skip to content

Commit

Permalink
react test comp added 6
Browse files Browse the repository at this point in the history
  • Loading branch information
vasylcode authored Sep 6, 2023
1 parent 57421cf commit 8448028
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/LivePeers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ type Peer = {
port: string;
};

const PeersInfo: React.FC = () => {
const LivePeers: React.FC = () => {
const [peers, setPeers] = useState<Peer[]>([]);

useEffect(() => {
const fetchPeersInfo = async () => {
const fetchLivePeers = async () => {
try {
const response = await fetch("https://zetachain-rpc.f5nodes.com/net_info");
const data = await response.json();
Expand Down Expand Up @@ -47,4 +47,4 @@ const PeersInfo: React.FC = () => {
);
};

export default PeersInfo;
export default LivePeers;

0 comments on commit 8448028

Please sign in to comment.