Skip to content

Commit

Permalink
Update previews
Browse files Browse the repository at this point in the history
  • Loading branch information
uhooi committed Sep 18, 2023
1 parent 94b0b55 commit 5e028bd
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ struct LicenseDetailScreen: View {

// MARK: - Previews

#if DEBUG
#Preview {
LicenseDetailScreen(license: .init(id: "loki", name: "Loki", licenseText: nil))
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ private extension View {

// MARK: - Previews

#if DEBUG
#Preview {
LicenseListScreen()
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ private extension View {

// MARK: - Previews

#if DEBUG
#Preview {
NavigationStack {
SakatsuInputScreen(
Expand All @@ -106,3 +107,4 @@ private extension View {
)
}
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ private extension SakatsuInputView {

// MARK: - Previews

#if DEBUG
#Preview {
SakatsuInputView(
sakatsu: .preview,
Expand All @@ -229,3 +230,4 @@ private extension SakatsuInputView {
onAddNewTemperatureButtonClick: {}
)
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,10 @@ private extension View {

// MARK: - Previews

#if DEBUG
#Preview {
NavigationStack {
SakatsuListScreen(onSettingsButtonClick: {})
}
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ struct SakatsuListView: View {

// MARK: - Previews

#if DEBUG
#Preview {
SakatsuListView(
sakatsus: [.preview],
Expand All @@ -37,3 +38,4 @@ struct SakatsuListView: View {
onDelete: { _ in }
)
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,12 @@ private extension SakatsuRowView {

// MARK: - Previews

#if DEBUG
#Preview {
SakatsuRowView(
sakatsu: .preview,
onCopySakatsuTextButtonClick: {},
onEditButtonClick: {}
)
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ public struct SettingsScreen: View {

// MARK: - Previews

#if DEBUG
#Preview {
NavigationStack {
SettingsScreen(onLicensesButtonClick: {})
}
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ private extension SettingsView {

// MARK: - Previews

#if DEBUG
#Preview {
SettingsView(
defaultSaunaTimes: .preview,
Expand All @@ -98,3 +99,4 @@ private extension SettingsView {
onLicensesButtonClick: {}
)
}
#endif

0 comments on commit 5e028bd

Please sign in to comment.