Skip to content

Commit

Permalink
Rename "Statistics" tab to "Details"
Browse files Browse the repository at this point in the history
  • Loading branch information
Sjmarf committed Jan 21, 2024
1 parent 7f792fa commit b97ea61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Mlem/Views/Shared/Instance/InstanceView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Charts
import Dependencies

enum InstanceViewTab: String, Identifiable, CaseIterable {
case about, administrators, statistics, uptime, safety
case about, administrators, details, uptime, safety

var id: Self { self }

Expand Down Expand Up @@ -96,7 +96,7 @@ struct InstanceView: View {
VStack(spacing: 0) {
VStack(spacing: 4) {
Divider()
BubblePicker([.about, .administrators, .statistics], selected: $selectedTab) { tab in
BubblePicker([.about, .administrators, .details], selected: $selectedTab) { tab in
Text(tab.label)
}
Divider()
Expand All @@ -121,7 +121,7 @@ struct InstanceView: View {
ProgressView()
.padding(.top)
}
case .statistics:
case .details:
if instance.userCount != nil {
InstanceStatsView(instance: instance)
.padding(.top, 16)
Expand Down
3 changes: 0 additions & 3 deletions Mlem/Views/Tabs/Profile/UserView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import Dependencies
import SwiftUI

// swiftlint:disable type_body_length
struct UserView: View {
@Dependency(\.apiClient) var apiClient
@Dependency(\.errorHandler) var errorHandler
Expand Down Expand Up @@ -264,5 +263,3 @@ struct UserView: View {
.padding(.horizontal, AppConstants.postAndCommentSpacing)
}
}

// swiftlint:enable type_body_length

0 comments on commit b97ea61

Please sign in to comment.