1
0
forked from Kieran/snort

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;
/**
* 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;

View File

@ -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 = () => {
/>
</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="flex f-col f-grow">
<div>

View File

@ -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."
},

View File

@ -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",