mirror of
https://github.com/ichmagmaus111/ghostgram.git
synced 2026-06-09 03:23:55 +02:00
feat: новые функции, исправлены критические ошибки сборки и баги интерфейса, больше подписей в файлах
This commit is contained in:
@@ -5,6 +5,8 @@ swift_library(
|
||||
module_name = "GiftViewScreen",
|
||||
srcs = glob([
|
||||
"Sources/**/*.swift",
|
||||
], exclude = [
|
||||
"Sources/TableComponent.swift",
|
||||
]),
|
||||
copts = [
|
||||
"-warnings-as-errors",
|
||||
|
||||
+6
-6
@@ -133,7 +133,7 @@ public func giftOfferAlertController(
|
||||
HStack(items, spacing: 4.0)
|
||||
)
|
||||
|
||||
tableItems.append(.init(
|
||||
tableItems.append(TableComponent.Item(
|
||||
id: id,
|
||||
title: title,
|
||||
hasBackground: false,
|
||||
@@ -180,12 +180,12 @@ public func giftOfferAlertController(
|
||||
AlertTextComponent(content: .plain(text))
|
||||
)
|
||||
))
|
||||
content.append(AnyComponentWithIdentity(
|
||||
let tableComponent = AnyComponent(AlertTableComponent(items: tableItems))
|
||||
let tableEntry = AnyComponentWithIdentity<AlertComponentEnvironment>(
|
||||
id: "table",
|
||||
component: AnyComponent(
|
||||
AlertTableComponent(items: tableItems)
|
||||
)
|
||||
))
|
||||
component: tableComponent
|
||||
)
|
||||
content.append(tableEntry)
|
||||
|
||||
if let valueAmount = gift.valueUsdAmount {
|
||||
let resaleConfiguration = StarsSubscriptionConfiguration.with(appConfiguration: context.currentAppConfiguration.with { $0 })
|
||||
|
||||
+6
-6
@@ -118,7 +118,7 @@ public func giftTransferAlertController(
|
||||
HStack(items, spacing: 4.0)
|
||||
)
|
||||
|
||||
tableItems.append(.init(
|
||||
tableItems.append(TableComponent.Item(
|
||||
id: id,
|
||||
title: title,
|
||||
hasBackground: false,
|
||||
@@ -165,12 +165,12 @@ public func giftTransferAlertController(
|
||||
AlertTextComponent(content: .plain(text))
|
||||
)
|
||||
))
|
||||
content.append(AnyComponentWithIdentity(
|
||||
let tableComponent = AnyComponent(AlertTableComponent(items: tableItems))
|
||||
let tableEntry = AnyComponentWithIdentity<AlertComponentEnvironment>(
|
||||
id: "table",
|
||||
component: AnyComponent(
|
||||
AlertTableComponent(items: tableItems)
|
||||
)
|
||||
))
|
||||
component: tableComponent
|
||||
)
|
||||
content.append(tableEntry)
|
||||
|
||||
let alertController = ChatMessagePaymentAlertController(
|
||||
context: context,
|
||||
|
||||
Reference in New Issue
Block a user