From 3a8125f0bb172a41428f633a87132f164194cfc2 Mon Sep 17 00:00:00 2001 From: Kieran Date: Tue, 16 May 2023 22:38:27 +0100 Subject: [PATCH] remove fastZapDonate --- packages/app/src/Login/Preferences.ts | 6 --- .../app/src/Pages/settings/Preferences.tsx | 37 ------------------- packages/app/src/lang.json | 12 ------ packages/app/src/translations/en.json | 4 -- 4 files changed, 59 deletions(-) diff --git a/packages/app/src/Login/Preferences.ts b/packages/app/src/Login/Preferences.ts index 774817e9a..647dc90b9 100644 --- a/packages/app/src/Login/Preferences.ts +++ b/packages/app/src/Login/Preferences.ts @@ -62,11 +62,6 @@ export interface UserPreferences { */ defaultZapAmount: number; - /** - * For each fast zap an additional X% will be sent to Snort donate address - */ - fastZapDonate: number; - /** * Auto-zap every post */ @@ -86,6 +81,5 @@ export const DefaultPreferences = { imgProxyConfig: DefaultImgProxy, defaultRootTab: "posts", defaultZapAmount: 50, - fastZapDonate: 0.0, autoZap: false, } as UserPreferences; diff --git a/packages/app/src/Pages/settings/Preferences.tsx b/packages/app/src/Pages/settings/Preferences.tsx index 9d98e2c66..478770230 100644 --- a/packages/app/src/Pages/settings/Preferences.tsx +++ b/packages/app/src/Pages/settings/Preferences.tsx @@ -1,7 +1,6 @@ import "./Preferences.css"; import { FormattedMessage, useIntl } from "react-intl"; -import { Link } from "react-router-dom"; import emoji from "@jukben/emoji-search"; import useLogin from "Hooks/useLogin"; @@ -165,42 +164,6 @@ const PreferencesPage = () => { /> -
-
-
- -
- - -
- - - - ), - }} - /> -
-
-
- updatePreferences(login, { ...perf, fastZapDonate: parseInt(e.target.value || "0") / 100 })} - /> -
-
diff --git a/packages/app/src/lang.json b/packages/app/src/lang.json index dd7ce4ec0..19b2cce7b 100644 --- a/packages/app/src/lang.json +++ b/packages/app/src/lang.json @@ -416,9 +416,6 @@ "IEwZvs": { "defaultMessage": "Are you sure you want to unpin this note?" }, - "IKOPx/": { - "defaultMessage": "Donate Page" - }, "INSqIz": { "defaultMessage": "Twitter username..." }, @@ -443,9 +440,6 @@ "JPFYIM": { "defaultMessage": "No lightning address" }, - "JXtsQW": { - "defaultMessage": "Fast Zap Donation" - }, "JkLHGw": { "defaultMessage": "Website" }, @@ -476,9 +470,6 @@ "KoFlZg": { "defaultMessage": "Enter mint URL" }, - "L7SZPr": { - "defaultMessage": "For more information about donations see {link}." - }, "LF5kYT": { "defaultMessage": "Other Connections" }, @@ -1133,9 +1124,6 @@ "rudscU": { "defaultMessage": "Failed to load follows, please try again later" }, - "sBz4+I": { - "defaultMessage": "For each Fast Zap an additional {percentage}% ({amount} sats) of the zap amount will be sent to the Snort developers as a donation." - }, "sWnYKw": { "defaultMessage": "Snort is designed to have a similar experience to Twitter." }, diff --git a/packages/app/src/translations/en.json b/packages/app/src/translations/en.json index f4112f4f2..161660e33 100644 --- a/packages/app/src/translations/en.json +++ b/packages/app/src/translations/en.json @@ -136,7 +136,6 @@ "HbefNb": "Open Wallet", "IDjHJ6": "Thanks for using Snort, please consider donating if you can.", "IEwZvs": "Are you sure you want to unpin this note?", - "IKOPx/": "Donate Page", "INSqIz": "Twitter username...", "IUZC+0": "This means that nobody can modify notes which you have created and everybody can easily verify that the notes they are reading are created by you.", "Iwm6o2": "NIP-05 Shop", @@ -145,7 +144,6 @@ "JCIgkj": "Username", "JHEHCk": "Zaps ({n})", "JPFYIM": "No lightning address", - "JXtsQW": "Fast Zap Donation", "JkLHGw": "Website", "JymXbw": "Private Key", "K3r6DQ": "Delete", @@ -156,7 +154,6 @@ "KWuDfz": "I have saved my keys, continue", "KahimY": "Unknown event kind: {kind}", "KoFlZg": "Enter mint URL", - "L7SZPr": "For more information about donations see {link}.", "LF5kYT": "Other Connections", "LXxsbk": "Anonymous", "LgbKvU": "Comment", @@ -370,7 +367,6 @@ "rmdsT4": "{n} days", "rrfdTe": "This is the same technology which is used by Bitcoin and has been proven to be extremely secure.", "rudscU": "Failed to load follows, please try again later", - "sBz4+I": "For each Fast Zap an additional {percentage}% ({amount} sats) of the zap amount will be sent to the Snort developers as a donation.", "sWnYKw": "Snort is designed to have a similar experience to Twitter.", "svOoEH": "Name-squatting and impersonation is not allowed. Snort and our partners reserve the right to terminate your handle (not your account - nobody can take that away) for violating this rule.", "tOdNiY": "Dark",