remove fastZapDonate

This commit is contained in:
Kieran 2023-05-16 22:38:27 +01:00
parent 6856527a51
commit 3a8125f0bb
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
4 changed files with 0 additions and 59 deletions

View File

@ -62,11 +62,6 @@ export interface UserPreferences {
*/ */
defaultZapAmount: number; defaultZapAmount: number;
/**
* For each fast zap an additional X% will be sent to Snort donate address
*/
fastZapDonate: number;
/** /**
* Auto-zap every post * Auto-zap every post
*/ */
@ -86,6 +81,5 @@ export const DefaultPreferences = {
imgProxyConfig: DefaultImgProxy, imgProxyConfig: DefaultImgProxy,
defaultRootTab: "posts", defaultRootTab: "posts",
defaultZapAmount: 50, defaultZapAmount: 50,
fastZapDonate: 0.0,
autoZap: false, autoZap: false,
} as UserPreferences; } as UserPreferences;

View File

@ -1,7 +1,6 @@
import "./Preferences.css"; import "./Preferences.css";
import { FormattedMessage, useIntl } from "react-intl"; import { FormattedMessage, useIntl } from "react-intl";
import { Link } from "react-router-dom";
import emoji from "@jukben/emoji-search"; import emoji from "@jukben/emoji-search";
import useLogin from "Hooks/useLogin"; import useLogin from "Hooks/useLogin";
@ -165,42 +164,6 @@ const PreferencesPage = () => {
/> />
</div> </div>
</div> </div>
<div className="card flex">
<div className="flex f-col f-grow">
<div>
<FormattedMessage defaultMessage="Fast Zap Donation" />
</div>
<small>
<FormattedMessage
defaultMessage="For each Fast Zap an additional {percentage}% ({amount} sats) of the zap amount will be sent to the Snort developers as a donation."
values={{
percentage: perf.fastZapDonate * 100,
amount: Math.floor(perf.defaultZapAmount * perf.fastZapDonate),
}}
/>
<br />
<FormattedMessage
defaultMessage="For more information about donations see {link}."
values={{
link: (
<Link to="/donate">
<FormattedMessage defaultMessage="Donate Page" />
</Link>
),
}}
/>
</small>
</div>
<div>
<input
type="number"
defaultValue={perf.fastZapDonate * 100}
min={0}
max={100}
onChange={e => updatePreferences(login, { ...perf, fastZapDonate: parseInt(e.target.value || "0") / 100 })}
/>
</div>
</div>
<div className="card flex"> <div className="card flex">
<div className="flex f-col f-grow"> <div className="flex f-col f-grow">
<div> <div>

View File

@ -416,9 +416,6 @@
"IEwZvs": { "IEwZvs": {
"defaultMessage": "Are you sure you want to unpin this note?" "defaultMessage": "Are you sure you want to unpin this note?"
}, },
"IKOPx/": {
"defaultMessage": "Donate Page"
},
"INSqIz": { "INSqIz": {
"defaultMessage": "Twitter username..." "defaultMessage": "Twitter username..."
}, },
@ -443,9 +440,6 @@
"JPFYIM": { "JPFYIM": {
"defaultMessage": "No lightning address" "defaultMessage": "No lightning address"
}, },
"JXtsQW": {
"defaultMessage": "Fast Zap Donation"
},
"JkLHGw": { "JkLHGw": {
"defaultMessage": "Website" "defaultMessage": "Website"
}, },
@ -476,9 +470,6 @@
"KoFlZg": { "KoFlZg": {
"defaultMessage": "Enter mint URL" "defaultMessage": "Enter mint URL"
}, },
"L7SZPr": {
"defaultMessage": "For more information about donations see {link}."
},
"LF5kYT": { "LF5kYT": {
"defaultMessage": "Other Connections" "defaultMessage": "Other Connections"
}, },
@ -1133,9 +1124,6 @@
"rudscU": { "rudscU": {
"defaultMessage": "Failed to load follows, please try again later" "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": { "sWnYKw": {
"defaultMessage": "Snort is designed to have a similar experience to Twitter." "defaultMessage": "Snort is designed to have a similar experience to Twitter."
}, },

View File

@ -136,7 +136,6 @@
"HbefNb": "Open Wallet", "HbefNb": "Open Wallet",
"IDjHJ6": "Thanks for using Snort, please consider donating if you can.", "IDjHJ6": "Thanks for using Snort, please consider donating if you can.",
"IEwZvs": "Are you sure you want to unpin this note?", "IEwZvs": "Are you sure you want to unpin this note?",
"IKOPx/": "Donate Page",
"INSqIz": "Twitter username...", "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.", "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", "Iwm6o2": "NIP-05 Shop",
@ -145,7 +144,6 @@
"JCIgkj": "Username", "JCIgkj": "Username",
"JHEHCk": "Zaps ({n})", "JHEHCk": "Zaps ({n})",
"JPFYIM": "No lightning address", "JPFYIM": "No lightning address",
"JXtsQW": "Fast Zap Donation",
"JkLHGw": "Website", "JkLHGw": "Website",
"JymXbw": "Private Key", "JymXbw": "Private Key",
"K3r6DQ": "Delete", "K3r6DQ": "Delete",
@ -156,7 +154,6 @@
"KWuDfz": "I have saved my keys, continue", "KWuDfz": "I have saved my keys, continue",
"KahimY": "Unknown event kind: {kind}", "KahimY": "Unknown event kind: {kind}",
"KoFlZg": "Enter mint URL", "KoFlZg": "Enter mint URL",
"L7SZPr": "For more information about donations see {link}.",
"LF5kYT": "Other Connections", "LF5kYT": "Other Connections",
"LXxsbk": "Anonymous", "LXxsbk": "Anonymous",
"LgbKvU": "Comment", "LgbKvU": "Comment",
@ -370,7 +367,6 @@
"rmdsT4": "{n} days", "rmdsT4": "{n} days",
"rrfdTe": "This is the same technology which is used by Bitcoin and has been proven to be extremely secure.", "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", "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.", "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.", "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", "tOdNiY": "Dark",