-
- {Array.from(Array(25).keys()).map((item) => (
-
-
-
- ))}
+ {isLoading
+ ? (
+
+
+ {Array.from(Array(25).keys()).map(item => (
+
+
+
+ ))}
+
-
- ) : (
- <>
- {thisWeek && thisWeek.length > 0 && (
-
- )}
-
- {lastWeek && lastWeek.length > 0 && (
-
- )}
-
- {older && older.length > 0 && (
-
- )}
- >
- )}
+ )
+ : (
+ <>
+ {thisWeek && thisWeek.length > 0 && (
+
+ )}
+
+ {lastWeek && lastWeek.length > 0 && (
+
+ )}
+
+ {older && older.length > 0 && (
+
+ )}
+ >
+ )}
>
);
};
diff --git a/src/components/RepoList.tsx b/src/components/RepoList.tsx
index 95956872..f26b38f3 100644
--- a/src/components/RepoList.tsx
+++ b/src/components/RepoList.tsx
@@ -1,10 +1,8 @@
import { emojify } from "node-emoji";
-import { useEffect } from "react";
import { FaDotCircle, FaStar } from "react-icons/fa";
import humanizeNumber from "../lib/humanizeNumber";
import { getAvatarLink, getRepoLink } from "../lib/github";
import StackedAvatar from "./StackedAvatar";
-import useVotedRepos from "../hooks/useVotedRepos";
import useContributions from "../hooks/useContributions";
export declare interface RepoListProps {
diff --git a/src/components/SecondaryNav.tsx b/src/components/SecondaryNav.tsx
index b4291d8e..00b34bac 100644
--- a/src/components/SecondaryNav.tsx
+++ b/src/components/SecondaryNav.tsx
@@ -1,5 +1,4 @@
import { Link, useLocation } from "react-router-dom";
-import useSupabaseAuth from "../hooks/useSupabaseAuth";
import locationsHash from "../lib/locationsHash";
import { RepoOrderByEnum } from "./RepoListWrap";
diff --git a/src/e2e-tests/loggedOutUser.spec.ts b/src/e2e-tests/loggedOutUser.spec.ts
index 036b4db5..859b5448 100644
--- a/src/e2e-tests/loggedOutUser.spec.ts
+++ b/src/e2e-tests/loggedOutUser.spec.ts
@@ -18,5 +18,4 @@ test("logged out user should see all categories", async ({ page }) => {
await expect(popular).toHaveAttribute("href", "/popular");
await expect(popular).toBeVisible();
-
});