Rename ZapButton to NoteZapButton and ZapButtonView to ProfileZapLinkView (no-op)

This is a non-functional refactor to rename two views with similar names, to avoid confusion.

Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
Reviewed-by: William Casarin <jb55@jb55.com>
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
Daniel D’Aquino
2023-10-23 23:32:43 +00:00
committed by William Casarin
parent a324523b85
commit 139df33cb7
6 changed files with 19 additions and 20 deletions
+1 -1
View File
@@ -222,7 +222,7 @@ struct ProfileView: View {
}
func lnButton(unownedProfile: Profile?, record: ProfileRecord?) -> some View {
return ZapButtonView(unownedProfileRecord: record, profileModel: self.profile) { reactions_enabled, lud16, lnurl in
return ProfileZapLinkView(unownedProfileRecord: record, profileModel: self.profile) { reactions_enabled, lud16, lnurl in
Image(reactions_enabled ? "zap.fill" : "zap")
.foregroundColor(reactions_enabled ? .orange : Color.primary)
.profile_button_style(scheme: colorScheme)