damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 62c539afbf02edf86196fa2be246be2f8f1d8207
parent b53e6db96bd940660b83e8337fed08b9cbf5db51
Author: William Casarin <jb55@jb55.com>
Date:   Fri, 23 Jun 2023 10:12:37 +0200

nozaps: never show orange button

Diffstat:
Mdamus/Components/ZapButton.swift | 15++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/damus/Components/ZapButton.swift b/damus/Components/ZapButton.swift @@ -39,6 +39,10 @@ struct ZapButton: View { } var zap_img: String { + if damus_state.settings.nozaps { + return "zap" + } + switch our_zap { case .none: return "zap" @@ -50,19 +54,16 @@ struct ZapButton: View { } var zap_color: Color { + if damus_state.settings.nozaps { + return Color.gray + } + if our_zap == nil { return Color.gray } // always orange ! return Color.orange - /* - if our_zap.is_paid { - return Color.orange - } else { - return Color.yellow - } - */ } func tap() {