From dc8694214450b7d0ccef42ac3639d340c67b5b5a Mon Sep 17 00:00:00 2001
From: Cloudburst <18114966+C10udburst@users.noreply.github.com>
Date: Sat, 1 Oct 2022 20:16:34 +0200
Subject: [PATCH] add a message about dns/vpn some ISPs are very dumb
---
src/pages/repos.js | 35 ++++++++++++++++++++++++++++++++---
1 file changed, 32 insertions(+), 3 deletions(-)
diff --git a/src/pages/repos.js b/src/pages/repos.js
index e2c786a..eff3ad2 100644
--- a/src/pages/repos.js
+++ b/src/pages/repos.js
@@ -6,14 +6,22 @@ import AdbConnect from "../components/adbconnect"
import bgImage from "../media/phones.png"
import { TiWarning } from "react-icons/ti";
+import { BiErrorAlt } from "react-icons/bi";
import { GoVerified } from "react-icons/go";
import { IconContext } from "react-icons";
const IndexPage = () => {
- const [repos, setRepos] = useState([]);
+ const [repos, setRepos] = useState(null);
+ const [afterTimeout, setAfterTimeout] = useState(false);
useEffect(() => {
+ setTimeout(() => {
+ setAfterTimeout(true)
+ }, 5000);
fetch("https://raw.githubusercontent.com/recloudstream/cs-repos/master/repos-db.json")
+ .catch(err => {
+ setAfterTimeout(true)
+ })
.then(r => r.json())
.then(data => {
setRepos(data)
@@ -39,9 +47,30 @@ const IndexPage = () => {
-