-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug fix transfer after network switch (#774)
Co-authored-by: kugel3 <gustaf.kugelberg@rdx.works> Co-authored-by: Gustaf Kugelberg <123396602+kugel3@users.noreply.github.com>
- Loading branch information
1 parent
f190eab
commit cd72a6a
Showing
5 changed files
with
78 additions
and
92 deletions.
There are no files selected for viewing
17 changes: 10 additions & 7 deletions
17
Sources/Core/DesignSystem/Components/DeveloperDisclaimerBanner.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,30 @@ | ||
import ComposableArchitecture | ||
import Resources | ||
import SwiftUI | ||
|
||
extension View { | ||
@ViewBuilder | ||
public func showDeveloperDisclaimerBanner(_ show: Bool) -> some View { | ||
@MainActor | ||
public func showDeveloperDisclaimerBanner(_ store: Store<Bool, Never>) -> some View { | ||
VStack(spacing: 0) { | ||
if show { | ||
DeveloperDisclaimerBanner() | ||
WithViewStore(store, observe: { $0 }) { viewStore in | ||
if viewStore.state { | ||
DeveloperDisclaimerBanner() | ||
} | ||
} | ||
self | ||
} | ||
} | ||
} | ||
|
||
// MARK: - DeveloperDisclaimerBanner | ||
struct DeveloperDisclaimerBanner: View { | ||
var body: some View { | ||
public struct DeveloperDisclaimerBanner: View { | ||
public var body: some View { | ||
Text(L10n.Common.developerDisclaimerText) | ||
.frame(maxWidth: .infinity, alignment: .center) | ||
.padding(.small3) | ||
.background(Color.app.orange2) | ||
.textStyle(.body2HighImportance) | ||
} | ||
|
||
init() {} | ||
public init() {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters