34 lines
742 B
Swift
34 lines
742 B
Swift
//
|
|
// 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 {
|
|
Form {
|
|
Section(header: Text("Users")) {
|
|
NavigationLink(destination: UsersList()) {
|
|
HStack {
|
|
Text("View Users")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.listStyle(GroupedListStyle())
|
|
.navigationBarTitle(Text("Admin 🚨"))
|
|
}
|
|
}
|
|
}
|
|
|
|
struct AdminList_Previews: PreviewProvider {
|
|
static var previews: some View {
|
|
AdminList()
|
|
}
|
|
}
|