Skip to content

ui: previews #194

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -175,13 +175,4 @@ struct TransactionDetailView: View {
amount: UInt64(1_000_000)
)
}

#Preview {
TransactionDetailView(
viewModel: .init(bdkClient: .mock, keyClient: .mock),
canonicalTx: .mock,
amount: UInt64(1_000_000)
)
.environment(\.dynamicTypeSize, .accessibility5)
}
#endif
7 changes: 0 additions & 7 deletions BDKSwiftExampleWallet/View/Activity/TransactionItemView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,4 @@ struct TransactionItemView: View {
isRedacted: false
)
}
#Preview {
TransactionItemView(
sentAndReceivedValues: .mock,
canonicalTx: .mock,
isRedacted: false
)
}
#endif
12 changes: 0 additions & 12 deletions BDKSwiftExampleWallet/View/Activity/TransactionListView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -99,16 +99,4 @@ struct TransactionListView: View {
)
)
}
#Preview {
TransactionListView(
transactions: [
.mock
],
walletSyncState: .synced,
viewModel: .init(
bdkClient: .mock
)
)
.environment(\.dynamicTypeSize, .accessibility5)
}
#endif
4 changes: 0 additions & 4 deletions BDKSwiftExampleWallet/View/HomeView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,4 @@ enum NavigationDestination: Hashable {
#Preview {
HomeView(viewModel: .init(bdkClient: .mock))
}
#Preview {
HomeView(viewModel: .init())
.environment(\.dynamicTypeSize, .accessibility5)
}
#endif
8 changes: 0 additions & 8 deletions BDKSwiftExampleWallet/View/OnboardingView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,4 @@ struct OnboardingView: View {
#Preview("OnboardingView - en") {
OnboardingView(viewModel: .init(bdkClient: .mock))
}
#Preview("OnboardingView - en - Large") {
OnboardingView(viewModel: .init(bdkClient: .mock))
.environment(\.dynamicTypeSize, .accessibility5)
}
#Preview("OnboardingView - fr") {
OnboardingView(viewModel: .init(bdkClient: .mock))
.environment(\.locale, .init(identifier: "fr"))
}
#endif
10 changes: 0 additions & 10 deletions BDKSwiftExampleWallet/View/Receive/ReceiveView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,4 @@ struct ReceiveView: View {
#Preview("ReceiveView - en") {
ReceiveView(viewModel: .init(bdkClient: .mock))
}

#Preview("ReceiveView - en - Large") {
ReceiveView(viewModel: .init(bdkClient: .mock))
.environment(\.dynamicTypeSize, .accessibility5)
}

#Preview("ReceiveView - fr") {
ReceiveView(viewModel: .init(bdkClient: .mock))
.environment(\.locale, .init(identifier: "fr"))
}
#endif
7 changes: 0 additions & 7 deletions BDKSwiftExampleWallet/View/Send/AddressView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,4 @@ struct CustomScannerView: View {
navigationPath: .constant(NavigationPath())
)
}
#Preview {
AddressView(
address: "tb1pw6y0vtmsn46epvz0j8ddc46ketmp28t82p22hcrrkch3a0jhu40qe267dl",
navigationPath: .constant(NavigationPath())
)
.environment(\.dynamicTypeSize, .accessibility5)
}
#endif
9 changes: 0 additions & 9 deletions BDKSwiftExampleWallet/View/Send/AmountView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,4 @@ struct NumpadButton: View {
navigationPath: .constant(NavigationPath())
)
}

#Preview {
AmountView(
address: "address",
viewModel: .init(bdkClient: .mock),
navigationPath: .constant(NavigationPath())
)
.environment(\.dynamicTypeSize, .accessibility5)
}
#endif
13 changes: 0 additions & 13 deletions BDKSwiftExampleWallet/View/Send/BuildTransactionView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -189,17 +189,4 @@ struct BuildTransactionView: View {
navigationPath: .constant(NavigationPath())
)
}

#Preview {
BuildTransactionView(
amount: "100000",
address: "tb1pxg0lakl0x4jee73f38m334qsma7mn2yv764x9an5ylht6tx8ccdsxtktrt",
fee: 17,
viewModel: .init(
bdkClient: .mock
),
navigationPath: .constant(NavigationPath())
)
.environment(\.dynamicTypeSize, .accessibility5)
}
#endif
10 changes: 0 additions & 10 deletions BDKSwiftExampleWallet/View/Send/FeeView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,4 @@ struct FeeView: View {
navigationPath: .constant(NavigationPath())
)
}

#Preview {
FeeView(
amount: "50",
address: "tb1pxg0lakl0x4jee73f38m334qsma7mn2yv764x9an5ylht6tx8ccdsxtktrt",
viewModel: .init(feeClient: .mock, bdkClient: .mock),
navigationPath: .constant(NavigationPath())
)
.environment(\.dynamicTypeSize, .accessibility5)
}
#endif
10 changes: 0 additions & 10 deletions BDKSwiftExampleWallet/View/Settings/SeedView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,4 @@ struct SeedView: View {
#Preview {
SeedView(viewModel: .init(bdkService: .mock))
}

#Preview {
SeedView(viewModel: .init(bdkService: .mock))
.environment(\.colorScheme, .dark)
}

#Preview {
SeedView(viewModel: .init(bdkService: .mock))
.environment(\.dynamicTypeSize, .accessibility5)
}
#endif
4 changes: 0 additions & 4 deletions BDKSwiftExampleWallet/View/Settings/SettingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,4 @@ struct SettingsView: View {
#Preview {
SettingsView(viewModel: .init(bdkClient: .mock, keyClient: .mock))
}
#Preview {
SettingsView(viewModel: .init(bdkClient: .mock, keyClient: .mock))
.environment(\.dynamicTypeSize, .accessibility5)
}
#endif
11 changes: 0 additions & 11 deletions BDKSwiftExampleWallet/View/WalletView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -293,15 +293,4 @@ struct WalletView: View {
)
)
}
#Preview("WalletView - fr") {
WalletView(
viewModel: .init(
priceClient: .mock,
bdkClient: .mock,
walletSyncState: .synced,
transactions: [.mock]
)
)
.environment(\.locale, .init(identifier: "fr"))
}
#endif
Loading