Skip to content

Commit 265c904

Browse files
[MOB-1589] Fixed a bunch of style issues
1 parent a019753 commit 265c904

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

firefox-ios/Client/Frontend/Browser/MainMenuActionHelper.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -584,16 +584,16 @@ class MainMenuActionHelper: PhotonActionSheetProtocol,
584584
let rateAction = UIAlertAction(title: .localized("Yes"), style:. default) { _ in
585585
self.delegate?.openURLInCurrentTab(Environment.current.urlProvider.storePage)
586586
}
587-
587+
588588
let helpPageAction = UIAlertAction(title: .localized("No"), style: .default) { _ in
589589
self.delegate?.openURLInCurrentTab(Environment.current.urlProvider.faq)
590590
// Analytics.shared.menuClick(.help)
591591
}
592-
593-
let alertController = UIAlertController.init(title: nil, message: .localized("Do you enjoy Ecosia?"), preferredStyle: .actionSheet)
592+
593+
let alertController = UIAlertController(title: nil, message: .localized("Do you enjoy Ecosia?"), preferredStyle: .actionSheet)
594594
alertController.addAction(rateAction)
595595
alertController.addAction(helpPageAction)
596-
596+
597597
viewController?.present(alertController, animated: true)
598598
}.items
599599
}

firefox-ios/Ecosia/Core/Environment/URLProvider.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -155,15 +155,15 @@ public enum URLProvider {
155155
]
156156
return components.url!
157157
}
158-
158+
159159
public var storePage: URL {
160160
switch Language.current {
161-
case .de:
162-
return URL(string: "https://apps.apple.com/de/app/ecosia/id1474845552")!
163-
case .fr:
164-
return URL(string: "https://apps.apple.com/fr/app/ecosia/id1474845552")!
165-
default:
166-
return URL(string: "https://apps.apple.com/us/app/ecosia/id1474845552")!
161+
case .de:
162+
return URL(string: "https://apps.apple.com/de/app/ecosia/id1474845552")!
163+
case .fr:
164+
return URL(string: "https://apps.apple.com/fr/app/ecosia/id1474845552")!
165+
default:
166+
return URL(string: "https://apps.apple.com/us/app/ecosia/id1474845552")!
167167
}
168168
}
169169
}

0 commit comments

Comments
 (0)