mirror of
https://github.com/yattee/yattee.git
synced 2024-11-10 00:08:21 +00:00
Sign in required fixes
This commit is contained in:
parent
2e3454a18f
commit
eae04c9382
@ -34,14 +34,15 @@ struct SignInRequiredView<Content: View>: View {
|
|||||||
|
|
||||||
Group {
|
Group {
|
||||||
if instances.isEmpty {
|
if instances.isEmpty {
|
||||||
Text("You need to create an instance and accounts\nto access \(title) section")
|
Text("You need to create an instance and accounts to access \(title) section")
|
||||||
} else {
|
} else {
|
||||||
Text("You need to select an account\nto access \(title) section")
|
Text("You need to select an account to access \(title) section")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.multilineTextAlignment(.center)
|
.multilineTextAlignment(.center)
|
||||||
.foregroundColor(.secondary)
|
.foregroundColor(.secondary)
|
||||||
.font(.title3)
|
.font(.title3)
|
||||||
|
.padding(.horizontal, 10)
|
||||||
.padding(.vertical)
|
.padding(.vertical)
|
||||||
|
|
||||||
#if !os(tvOS)
|
#if !os(tvOS)
|
||||||
@ -65,6 +66,5 @@ struct SignInRequiredView_Previews: PreviewProvider {
|
|||||||
Text("Only when signed in")
|
Text("Only when signed in")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.injectFixtureEnvironmentObjects()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user