summaryrefslogtreecommitdiff
path: root/Sora/Views/Post/Grid/PostGridSearchHistoryView.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Sora/Views/Post/Grid/PostGridSearchHistoryView.swift')
-rw-r--r--Sora/Views/Post/Grid/PostGridSearchHistoryView.swift6
1 files changed, 4 insertions, 2 deletions
diff --git a/Sora/Views/Post/Grid/PostGridSearchHistoryView.swift b/Sora/Views/Post/Grid/PostGridSearchHistoryView.swift
index 13baa41..fcadea1 100644
--- a/Sora/Views/Post/Grid/PostGridSearchHistoryView.swift
+++ b/Sora/Views/Post/Grid/PostGridSearchHistoryView.swift
@@ -1,7 +1,8 @@
import SwiftUI
struct PostGridSearchHistoryView: View {
- @EnvironmentObject var settings: SettingsManager
+ @Environment(SettingsManager.self)
+ private var settings
@Binding var selectedTab: Int
@Binding var isPresented: Bool
@@ -10,6 +11,7 @@ struct PostGridSearchHistoryView: View {
selectedTab: $selectedTab,
isPresented: $isPresented,
allowBookmarking: true,
+ showsSettingsButton: false,
title: "Search History",
emptyMessage: "No History",
emptyIcon: "magnifyingglass",
@@ -29,6 +31,6 @@ struct PostGridSearchHistoryView: View {
selectedTab: .constant(0),
isPresented: .constant(true)
)
- .environmentObject(SettingsManager())
+ .environment(SettingsManager())
.environmentObject(BooruManager(.safebooru))
}