Make Status the first tab under More on the phone and after Lead on Mac
This commit is contained in:
@@ -41,13 +41,13 @@ private func taskTab(_ store: Store) -> TaskTab {
|
||||
}
|
||||
|
||||
private enum MoreRoute: Hashable {
|
||||
case notes, workflows, status, settings
|
||||
case status, notes, workflows, settings
|
||||
}
|
||||
|
||||
private let moreTitles: [MoreRoute: String] = [
|
||||
.status: "Status",
|
||||
.notes: "Notes",
|
||||
.workflows: "Workflows",
|
||||
.status: "Status",
|
||||
.settings: "Settings",
|
||||
]
|
||||
|
||||
@@ -368,12 +368,12 @@ private func dismissKeyboard() {
|
||||
}
|
||||
|
||||
private struct MoreScreen: View {
|
||||
@ViewState private var route = MoreRoute.notes
|
||||
@ViewState private var route = MoreRoute.status
|
||||
|
||||
var body: some View {
|
||||
VStack(spacing: 0) {
|
||||
HStack(spacing: 4) {
|
||||
ForEach([MoreRoute.notes, .workflows, .status, .settings], id: \.self) { r in
|
||||
ForEach([MoreRoute.status, .notes, .workflows, .settings], id: \.self) { r in
|
||||
PaneTabButton(label: moreTitles[r]!, active: route == r) {
|
||||
route = r
|
||||
dismissKeyboard()
|
||||
|
||||
Reference in New Issue
Block a user