diff options
Diffstat (limited to 'Hotline/Views/FilesView.swift')
| -rw-r--r-- | Hotline/Views/FilesView.swift | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/Hotline/Views/FilesView.swift b/Hotline/Views/FilesView.swift index 0e1bb91..d910af2 100644 --- a/Hotline/Views/FilesView.swift +++ b/Hotline/Views/FilesView.swift @@ -6,15 +6,8 @@ struct FilesView: View { @State private var fetched = false var body: some View { - ScrollView { - VStack(spacing: 0) { - List(hotline.userList) { u in - HStack(alignment: .firstTextBaseline) { - Text(u.name).bold().foregroundStyle(u.isAdmin ? Color.red : Color.black) - } - } - .padding() - } + List(hotline.fileList) { + FileListView(item: $0) } .task { if !fetched { |