2022-08-11 20:15:21 +01:00
|
|
|
//
|
|
|
|
// AdminList.swift
|
|
|
|
// Mixonomer
|
|
|
|
//
|
|
|
|
// Created by Andy Pack on 11/08/2022.
|
|
|
|
// Copyright © 2022 Sarsoo. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
import SwiftUI
|
|
|
|
|
|
|
|
struct AdminList: View {
|
|
|
|
var body: some View {
|
|
|
|
NavigationView {
|
2022-08-15 19:25:50 +01:00
|
|
|
Form {
|
2022-08-14 13:14:21 +01:00
|
|
|
Section(header: Text("Users")) {
|
|
|
|
NavigationLink(destination: UsersList()) {
|
|
|
|
HStack {
|
|
|
|
Text("View Users")
|
|
|
|
}
|
|
|
|
}
|
2022-08-11 20:15:21 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
.listStyle(GroupedListStyle())
|
|
|
|
.navigationBarTitle(Text("Admin 🚨"))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
struct AdminList_Previews: PreviewProvider {
|
|
|
|
static var previews: some View {
|
|
|
|
AdminList()
|
|
|
|
}
|
|
|
|
}
|