mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-08-22 10:10:03 +00:00
add to settings
This commit is contained in:
@@ -42,7 +42,7 @@ private struct FeatureView {
|
||||
let view: () -> any View
|
||||
}
|
||||
|
||||
private let isInUS = true // SKStorefront().countryCode == "USA"
|
||||
let isInUS = true // SKStorefront().countryCode == "USA"
|
||||
|
||||
private let versionDescriptions: [VersionDescription] = [
|
||||
VersionDescription(
|
||||
@@ -805,7 +805,7 @@ fileprivate let getStakeSlides: [(image: String, text: LocalizedStringKey?)] = [
|
||||
("crowdfunding_11", "Read about how we plan the make SimpleX Chat and network profitable, and about all the investment terms on Wefunder."),
|
||||
]
|
||||
|
||||
fileprivate struct GetStakeView: View {
|
||||
struct GetStakeView: View {
|
||||
@Environment(\.dismiss) var dismiss: DismissAction
|
||||
@EnvironmentObject var chatModel: ChatModel
|
||||
|
||||
|
||||
@@ -438,6 +438,14 @@ struct SettingsView: View {
|
||||
}
|
||||
|
||||
Section(header: Text("Support the project").foregroundColor(theme.colors.secondary)) {
|
||||
if isInUS {
|
||||
NavigationLink {
|
||||
GetStakeView()
|
||||
.navigationBarTitle("", displayMode: .inline)
|
||||
} label: {
|
||||
settingsRow("dollarsign.circle", color: theme.colors.secondary) { Text("Crowdfunding on Wefunder") }
|
||||
}
|
||||
}
|
||||
settingsRow("keyboard", color: theme.colors.secondary) {
|
||||
ExternalLink("Contribute", destination: URL(string: "https://github.com/simplex-chat/simplex-chat#contribute")!)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user