diff --git a/src/components/AppProvider.tsx b/src/components/AppProvider.tsx
index f8accd6..404d0ae 100644
--- a/src/components/AppProvider.tsx
+++ b/src/components/AppProvider.tsx
@@ -1,19 +1,9 @@
"use client";
-import { usePlayerScoresStore } from "@/store/playerScoresStore";
-
type AppProviderProps = {
children: React.ReactNode;
};
-usePlayerScoresStore.getState().updatePlayerScores();
-setTimeout(
- () => {
- usePlayerScoresStore.getState().updatePlayerScores();
- },
- 1000 * 60 * 10,
-); // fetch new scores every 10 minutes
-
export default function AppProvider({ children }: AppProviderProps) {
return <>{children}>;
}
diff --git a/src/components/Button.tsx b/src/components/Button.tsx
index edefd6e..a39f625 100644
--- a/src/components/Button.tsx
+++ b/src/components/Button.tsx
@@ -1,7 +1,7 @@
import clsx from "clsx";
interface ButtonProps {
- text: string;
+ text: JSX.Element | string;
url: string;
icon?: JSX.Element;
className?: string;
diff --git a/src/components/Navbar.tsx b/src/components/Navbar.tsx
index 6bfdfe1..3bca09f 100644
--- a/src/components/Navbar.tsx
+++ b/src/components/Navbar.tsx
@@ -32,7 +32,7 @@ function NavbarButton({ text, icon, href, children }: ButtonProps) {
{children && (
-
+
)}
@@ -61,7 +61,27 @@ export default function Navbar() {
)}
}>
-
No friends, add someone!
+ {settingsStore?.friends.length == 0 ? (
+
No friends, add someone!
+ ) : (
+ settingsStore?.friends.map((friend) => {
+ return (
+
+ }
+ />
+ );
+ })
+ )}