Skip to content

Commit

Permalink
feat(MenuViewController): Hide upgrade cell that shows up on top of menu
Browse files Browse the repository at this point in the history
  • Loading branch information
adrien-coye committed Feb 11, 2025
1 parent 58a561e commit 6f634e9
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions kDrive/UI/Controller/Menu/MenuViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,7 @@ final class MenuViewController: UITableViewController, SelectSwitchDriveDelegate
}

private func updateTableContent() {
// Show upgrade section if free drive
if driveFileManager.drive.isFreePack {
sections = [.header, .upgrade, .options]
} else {
sections = [.header, .options]
}
sections = [.header, .options]

if let uploadCountManager, uploadCountManager.uploadCount > 0 {
sections.insert(.uploads, at: 1)
Expand Down

0 comments on commit 6f634e9

Please sign in to comment.