mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-14 17:23:25 +01:00
[ADD] Hint for new users who don't have any sources
This commit is contained in:
committed by
Joe Mattiello
parent
6aaadc79e5
commit
fc974a8079
@@ -155,19 +155,19 @@ struct MyAppsView: View {
|
||||
}
|
||||
|
||||
var updatesSection: some View {
|
||||
VStack(alignment: .leading, spacing: 8) {
|
||||
HintView {
|
||||
HStack(alignment: .center) {
|
||||
Text("All Apps are Up To Date")
|
||||
.bold()
|
||||
Spacer()
|
||||
|
||||
|
||||
Menu {
|
||||
SwiftUI.Button {
|
||||
self.dismissUpdatesHint(forever: false)
|
||||
} label: {
|
||||
Label("Dismiss for now", systemSymbol: .zzz)
|
||||
}
|
||||
|
||||
|
||||
SwiftUI.Button {
|
||||
self.dismissUpdatesHint(forever: true)
|
||||
} label: {
|
||||
@@ -176,15 +176,13 @@ struct MyAppsView: View {
|
||||
} label: {
|
||||
Image(systemSymbol: .xmark)
|
||||
}
|
||||
.foregroundColor(.secondary)
|
||||
}
|
||||
|
||||
|
||||
Text("You will be notified once updates for your apps are available. The updates will then be shown here.")
|
||||
.font(.callout)
|
||||
.foregroundColor(.secondary)
|
||||
}
|
||||
.foregroundColor(.secondary)
|
||||
.padding()
|
||||
.background(Color(.tertiarySystemBackground))
|
||||
.clipShape(RoundedRectangle(cornerRadius: 8))
|
||||
}
|
||||
|
||||
@ViewBuilder
|
||||
@@ -428,6 +426,8 @@ extension MyAppsView {
|
||||
|
||||
struct MyAppsView_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
MyAppsView()
|
||||
NavigationView {
|
||||
MyAppsView()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user