diff --git a/src/components/SettingsViewer.tsx b/src/components/SettingsViewer.tsx index 9c95f10..0277c1d 100644 --- a/src/components/SettingsViewer.tsx +++ b/src/components/SettingsViewer.tsx @@ -216,6 +216,27 @@ export function SettingsViewer() {

+ {/* Contribution Tiers */} +
+

Contribute

+
+ {contributionTiers.map(({ amount, icon: Icon }) => ( + + ))} +
+
+ {/* Show Monthly Goal Toggle */}
@@ -262,27 +283,6 @@ export function SettingsViewer() {
- {/* Contribution Tiers */} -
-

Contribute

-
- {contributionTiers.map(({ amount, icon: Icon }) => ( - - ))} -
-
- {/* Top Contributors This Month */} {topDonors && topDonors.length > 0 && (
diff --git a/src/components/ZapWindow.tsx b/src/components/ZapWindow.tsx index d803f26..dde64ef 100644 --- a/src/components/ZapWindow.tsx +++ b/src/components/ZapWindow.tsx @@ -150,6 +150,13 @@ export function ZapWindow({ const [paymentTimedOut, setPaymentTimedOut] = useState(false); const [zapAnonymously, setZapAnonymously] = useState(false); + // Update selected amount when defaultAmount prop changes + useEffect(() => { + if (defaultAmount) { + setSelectedAmount(defaultAmount); + } + }, [defaultAmount]); + // Editor ref and search functions const editorRef = useRef(null); const { searchProfiles } = useProfileSearch();