commit 47e750557388820cd2ea7c1fad425fa4de829726
parent 0f1390f4128ceb5cbb7135324080f5f6d2e685d4
Author: Bryan Montz <bryanmontz@me.com>
Date: Sun, 16 Jul 2023 08:00:55 -0500
fix typos
Signed-off-by: Bryan Montz <bryanmontz@me.com>
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat:
5 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/damus/ContentView.swift b/damus/ContentView.swift
@@ -285,7 +285,7 @@ struct ContentView: View {
SideMenuView(damus_state: damus, isSidebarVisible: $isSideBarOpened.animation())
)
.navigationDestination(for: Route.self) { route in
- route.view(navigationCordinator: navigationCoordinator, damusState: damus_state!)
+ route.view(navigationCoordinator: navigationCoordinator, damusState: damus_state!)
}
.onReceive(handle_notify(.switched_timeline)) { _ in
navigationCoordinator.popToRoot()
diff --git a/damus/Models/WalletModel.swift b/damus/Models/WalletModel.swift
@@ -16,7 +16,7 @@ enum WalletConnectState {
class WalletModel: ObservableObject {
var settings: UserSettingsStore
private(set) var previous_state: WalletConnectState
- var inital_percent: Int
+ var initial_percent: Int
@Published private(set) var connect_state: WalletConnectState
@@ -24,7 +24,7 @@ class WalletModel: ObservableObject {
self.connect_state = state
self.previous_state = .none
self.settings = settings
- self.inital_percent = settings.donation_percent
+ self.initial_percent = settings.donation_percent
}
init(settings: UserSettingsStore) {
@@ -37,7 +37,7 @@ class WalletModel: ObservableObject {
self.previous_state = .none
self.connect_state = .none
}
- self.inital_percent = settings.donation_percent
+ self.initial_percent = settings.donation_percent
}
func cancel() {
diff --git a/damus/Util/Router.swift b/damus/Util/Router.swift
@@ -43,7 +43,7 @@ enum Route: Hashable {
case FollowersYouKnow(friendedFollowers: [String], followers: FollowersModel)
@ViewBuilder
- func view(navigationCordinator: NavigationCoordinator, damusState: DamusState) -> some View {
+ func view(navigationCoordinator: NavigationCoordinator, damusState: DamusState) -> some View {
switch self {
case .ProfileByKey(let pubkey):
ProfileView(damus_state: damusState, pubkey: pubkey)
@@ -96,11 +96,11 @@ enum Route: Hashable {
case .Search(let search):
SearchView(appstate: damusState, search: search)
case .EULA:
- EULAView(nav: navigationCordinator)
+ EULAView(nav: navigationCoordinator)
case .Login:
- LoginView(nav: navigationCordinator)
+ LoginView(nav: navigationCoordinator)
case .CreateAccount:
- CreateAccountView(nav: navigationCordinator)
+ CreateAccountView(nav: navigationCoordinator)
case .SaveKeys(let account):
SaveKeysView(account: account)
case .Wallet(let walletModel):
diff --git a/damus/Views/SetupView.swift b/damus/Views/SetupView.swift
@@ -63,7 +63,7 @@ struct SetupView: View {
}
.background(DamusBackground(maxHeight: 300), alignment: .top)
.navigationDestination(for: Route.self) { route in
- route.view(navigationCordinator: navigationCoordinator, damusState: DamusState.empty)
+ route.view(navigationCoordinator: navigationCoordinator, damusState: DamusState.empty)
}
}
.navigationBarTitleDisplayMode(.inline)
diff --git a/damus/Views/Wallet/WalletView.swift b/damus/Views/Wallet/WalletView.swift
@@ -161,7 +161,7 @@ struct WalletView: View {
case .existing(let nwc):
MainWalletView(nwc: nwc)
.onAppear() {
- model.inital_percent = settings.donation_percent
+ model.initial_percent = settings.donation_percent
}
.onChange(of: settings.donation_percent) { p in
guard let profile = damus_state.profiles.lookup(id: damus_state.pubkey) else {
@@ -175,7 +175,7 @@ struct WalletView: View {
.onDisappear {
guard let keypair = damus_state.keypair.to_full(),
let profile = damus_state.profiles.lookup(id: damus_state.pubkey),
- model.inital_percent != profile.damus_donation
+ model.initial_percent != profile.damus_donation
else {
return
}