chore: remove profile OnlyZaps

This commit is contained in:
Kieran 2023-04-25 10:15:15 +01:00
parent 9258253f65
commit 5ec7c1a765
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
3 changed files with 1 additions and 15 deletions

View File

@ -264,7 +264,7 @@ export default function NoteFooter(props: NoteFooterProps) {
}
function reactionIcons() {
if (!prefs.enableReactions || author?.reactions === false) {
if (!prefs.enableReactions) {
return null;
}
return (

View File

@ -50,7 +50,6 @@ export default function ProfileSettings(props: ProfileSettingsProps) {
setWebsite(user.website);
setNip05(user.nip05);
setLud16(user.lud16);
setReactions(user.reactions);
}
}, [user]);
@ -66,7 +65,6 @@ export default function ProfileSettings(props: ProfileSettingsProps) {
website,
nip05,
lud16,
reactions,
} as Record<string, string | number | undefined>;
delete userCopy["loaded"];
delete userCopy["created"];
@ -169,17 +167,6 @@ export default function ProfileSettings(props: ProfileSettingsProps) {
<input type="text" value={lud16} onChange={e => setLud16(e.target.value)} />
</div>
</div>
<div className="form-group card">
<div className="flex f-col">
<FormattedMessage defaultMessage="OnlyZaps" />:
<small>
<FormattedMessage defaultMessage="Some clients will only allow zaps on your notes" />
</small>
</div>
<div>
<input type="checkbox" checked={!reactions} onChange={e => setReactions(!e.target.checked)} />
</div>
</div>
<div className="form-group card">
<div></div>
<div>

View File

@ -70,7 +70,6 @@ export type UserMetadata = {
nip05?: string;
lud06?: string;
lud16?: string;
reactions?: boolean;
};
/**