nozaps: never show orange button
This commit is contained in:
1 parent
b53e6db96b
commit
62c539afbf
1 file changed
+8
-7
@@ -39,6 +39,10 @@ struct ZapButton: View {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var zap_img: String {
|
var zap_img: String {
|
||||||
|
if damus_state.settings.nozaps {
|
||||||
|
return "zap"
|
||||||
|
}
|
||||||
|
|
||||||
switch our_zap {
|
switch our_zap {
|
||||||
case .none:
|
case .none:
|
||||||
return "zap"
|
return "zap"
|
||||||
@@ -50,19 +54,16 @@ struct ZapButton: View {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var zap_color: Color {
|
var zap_color: Color {
|
||||||
|
if damus_state.settings.nozaps {
|
||||||
|
return Color.gray
|
||||||
|
}
|
||||||
|
|
||||||
if our_zap == nil {
|
if our_zap == nil {
|
||||||
return Color.gray
|
return Color.gray
|
||||||
}
|
}
|
||||||
|
|
||||||
// always orange !
|
// always orange !
|
||||||
return Color.orange
|
return Color.orange
|
||||||
/*
|
|
||||||
if our_zap.is_paid {
|
|
||||||
return Color.orange
|
|
||||||
} else {
|
|
||||||
return Color.yellow
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func tap() {
|
func tap() {
|
||||||
|
|||||||
Reference in new issue
Block a user