Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dgershman committed Jan 5, 2024
1 parent 7af1955 commit 4eb31c9
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
import logo from './logo.svg';
import './App.css';
import {useEffect, useState} from "react";
import {useEffect, useMemo, useState} from "react";


function App() {
let yapServers = [
{"name":"Al-Sask","url":"https://bmltyap.org/AlSask/upgrade-advisor.php"},
{"name":"Quebec","url":"https://yap.membres.naquebec.org/upgrade-advisor.php"},
{"name":"SEZF","url":"https://bmlt.sezf.org/zonal-yap/upgrade-advisor.php?override_service_body_config_id=43"},
{"name":"WSZF","url":"https://bmlt.wszf.org/yap/upgrade-advisor.php"},
]
const yapServers = useMemo(() =>
{
return [
{"name": "Al-Sask", "url": "https://bmltyap.org/AlSask/upgrade-advisor.php"},
{"name": "Quebec", "url": "https://yap.membres.naquebec.org/upgrade-advisor.php"},
{"name": "SEZF", "url": "https://bmlt.sezf.org/zonal-yap/upgrade-advisor.php?override_service_body_config_id=43"},
{"name": "WSZF", "url": "https://bmlt.wszf.org/yap/upgrade-advisor.php"},
]
}, []);

const [yapServerData, setYapServerData] = useState([]);

Expand All @@ -27,7 +29,7 @@ function App() {
}

fetchData()
}, [])
}, [yapServers])

return (
<div>
Expand Down

0 comments on commit 4eb31c9

Please sign in to comment.