Various fixes

This commit is contained in:
Ilya Laktyushin
2023-11-25 22:09:11 +04:00
parent a15b9a1072
commit 0fa4e6239c
2 changed files with 6 additions and 4 deletions

View File

@@ -477,7 +477,7 @@ private final class DemoSheetContent: CombinedComponent {
self.context = context
self.subject = subject
self.source = source
self.order = order ?? [.moreUpload, .fasterDownload, .voiceToText, .noAds, .uniqueReactions, .premiumStickers, .animatedEmoji, .advancedChatManagement, .profileBadge, .animatedUserpics, .appIcons, .translation, .stories]
self.order = order ?? [.moreUpload, .fasterDownload, .voiceToText, .noAds, .uniqueReactions, .premiumStickers, .animatedEmoji, .advancedChatManagement, .profileBadge, .animatedUserpics, .appIcons, .translation, .stories, .colors, .wallpapers]
self.action = action
self.dismiss = dismiss
}
@@ -946,7 +946,7 @@ private final class DemoSheetContent: CombinedComponent {
)
availableItems[.colors] = DemoPagerComponent.Item(
AnyComponentWithIdentity(
id: PremiumDemoScreen.Subject.animatedUserpics,
id: PremiumDemoScreen.Subject.colors,
component: AnyComponent(
PageComponent(
content: AnyComponent(PhoneDemoComponent(
@@ -964,7 +964,7 @@ private final class DemoSheetContent: CombinedComponent {
)
availableItems[.wallpapers] = DemoPagerComponent.Item(
AnyComponentWithIdentity(
id: PremiumDemoScreen.Subject.animatedUserpics,
id: PremiumDemoScreen.Subject.wallpapers,
component: AnyComponent(
PageComponent(
content: AnyComponent(PhoneDemoComponent(
@@ -1078,6 +1078,8 @@ private final class DemoSheetContent: CombinedComponent {
buttonAnimationName = "premium_unlock"
case .voiceToText:
buttonText = strings.Premium_VoiceToText_Proceed
case .wallpapers:
buttonText = strings.Premium_Wallpaper_Proceed
default:
buttonText = strings.Common_OK
}

View File

@@ -520,7 +520,7 @@ public class WallpaperGalleryController: ViewController {
if forBoth && !strongSelf.context.isPremium {
let context = strongSelf.context
var replaceImpl: ((ViewController) -> Void)?
let controller = context.sharedContext.makePremiumDemoController(context: context, subject: .voiceToText, action: {
let controller = context.sharedContext.makePremiumDemoController(context: context, subject: .wallpapers, action: {
let controller = context.sharedContext.makePremiumIntroController(context: context, source: .settings, forceDark: false, dismissed: nil)
replaceImpl?(controller)
})