Skip to content

Commit

Permalink
Fix Preview as Mock are defined only for DEBUG config
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandroboron committed Apr 17, 2024
1 parent 9d2cf2e commit 7bc0262
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ struct BookmarkAllTabsDialogView: ModalView {
}
}

#if DEBUG
#Preview("Bookmark All Tabs - Light") {
let parentFolder = BookmarkFolder(id: "7", title: "DuckDuckGo")
let bookmark = Bookmark(id: "1", url: "www.duckduckgo.com", title: "DuckDuckGo", isFavorite: true, parentFolderUUID: "7")
Expand Down Expand Up @@ -137,3 +138,4 @@ struct BookmarkAllTabsDialogView: ModalView {
return BookmarksDialogViewFactory.makeBookmarkAllOpenTabsView(websitesInfo: websitesInfo, bookmarkManager: bookmarkManager)
.preferredColorScheme(.dark)
}
#endif

0 comments on commit 7bc0262

Please sign in to comment.