diff --git a/src/app/(app)/more/page.tsx b/src/app/(app)/more/page.tsx
index 9621580..1ab2b7f 100644
--- a/src/app/(app)/more/page.tsx
+++ b/src/app/(app)/more/page.tsx
@@ -1,12 +1,11 @@
import { ChevronRight, Sparkles } from "lucide-react";
-import { DonateLink } from "@/components/Donate";
import Link from "next/link";
const PAGES = [
{ href: "/debt", label: "Debt", what: "What you owe, what you're paying and what it costs." },
];
-// What isn't in the main menu: Debt, connecting your AI and supporting broke.
+// What isn't in the main menu: Debt and connecting your AI.
export default function More() {
return (
@@ -23,8 +22,6 @@ export default function More() {
Connect your AI
- {/* The sidebar has this link too; on a phone, More is the only place. */}
-
);
}
diff --git a/src/components/Donate.tsx b/src/components/Donate.tsx
deleted file mode 100644
index 81265bc..0000000
--- a/src/components/Donate.tsx
+++ /dev/null
@@ -1,55 +0,0 @@
-"use client";
-
-import { Heart } from "lucide-react";
-import { useEffect, useState } from "react";
-import { Modal } from "@/components/Modal";
-
-export const DONATE_URL = "https://buy.stripe.com/5kQ6oHgXWc1T33CbNt5Vu05";
-const USED = "broke.minutesUsed", ASKED = "broke.donateAsked";
-const ASK_AFTER = 120; // minutes with broke open and on screen
-
-const read = (k: string) => { try { return localStorage.getItem(k); } catch { return null; } };
-const write = (k: string, v: string) => { try { localStorage.setItem(k, v); } catch { /* private window: just don't count */ } };
-
-export function DonateLink({ className = "" }: { className?: string }) {
- return (
-
-
- Support broke
-
- );
-}
-
-// Asks once, after about two hours of use: minutes count only while a broke tab is open and visible, in this browser.
-export function DonatePrompt() {
- const [open, setOpen] = useState(false);
- useEffect(() => {
- if (read(ASKED)) return;
- const tick = setInterval(() => {
- if (document.visibilityState !== "visible") return;
- const used = Number(read(USED) ?? 0) + 1;
- write(USED, String(used));
- if (used < ASK_AFTER || read(ASKED)) return;
- write(ASKED, new Date().toISOString());
- setOpen(true);
- clearInterval(tick);
- }, 60_000);
- return () => clearInterval(tick);
- }, []);
- if (!open) return null;
- return (
- setOpen(false)}>
-
-
-
-
Finding broke useful?
-
broke is free and open source. If it's saved you money, you can chip in to keep it going. This is the only time it asks.
-
-
-
-
- );
-}
diff --git a/src/components/Nav.tsx b/src/components/Nav.tsx
index 17d29aa..41196b3 100644
--- a/src/components/Nav.tsx
+++ b/src/components/Nav.tsx
@@ -7,7 +7,6 @@ import { usePathname, useRouter } from "next/navigation";
import { Suspense, useEffect, useState } from "react";
import { useAssistant } from "@/components/Assistant";
import { BookmarkButton, SavedList } from "@/components/Bookmarks";
-import { DonateLink, DonatePrompt } from "@/components/Donate";
// Spending holds Budgets and Recurring as tabs, Plan holds Optimize, Bonuses and Cards, More holds the rest. Every page keeps its own URL.
type Icon = ComponentType<{ size?: number; strokeWidth?: number }>;
@@ -61,10 +60,8 @@ export function Nav() {
Ask broke ai
-
-
>
);
}