Skip to content

Commit

Permalink
Add environmentObject to previews
Browse files Browse the repository at this point in the history
  • Loading branch information
GianniCarlo committed Jun 12, 2023
1 parent 45d897c commit 6823925
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,6 @@ struct ClearableTextField: View {
struct ClearableTextField_Previews: PreviewProvider {
static var previews: some View {
ClearableTextField("Title", text: .constant(""))
.environmentObject(ThemeViewModel())
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,6 @@ struct ItemDetailsArtworkSectionView_Previews: PreviewProvider {
image: .constant(nil),
actionHandler: {}
)
.environmentObject(ThemeViewModel())
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,6 @@ struct PricingRowView_Previews: PreviewProvider {
isLoading: .constant(true)
)
}
.environmentObject(ThemeViewModel())
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@ struct QueuedSyncTaskRowView_Previews: PreviewProvider {
imageName: .constant("bookmark"),
title: .constant("Task")
)
.environmentObject(ThemeViewModel())
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,6 @@ struct ProfileCardView: View {
struct ProfileCardView_Previews: PreviewProvider {
static var previews: some View {
ProfileCardView(account: .constant(Account()))
.environmentObject(ThemeViewModel())
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@ struct ProfileStatsView_Previews: PreviewProvider {
ProfileListenedTimeView(
formattedListeningTime: .constant("0m")
)
.environmentObject(ThemeViewModel())
}
}

0 comments on commit 6823925

Please sign in to comment.