From 0a7d51956759b59839cf818a650e19b957896f74 Mon Sep 17 00:00:00 2001 From: cheykrym Date: Sun, 26 Oct 2025 02:39:55 +0300 Subject: [PATCH] add error msg --- yobble/Resources/Localizable.xcstrings | 3 --- yobble/Views/Tab/Settings/BlockedUsersView.swift | 8 ++++++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/yobble/Resources/Localizable.xcstrings b/yobble/Resources/Localizable.xcstrings index b54f0b9..9fec7a2 100644 --- a/yobble/Resources/Localizable.xcstrings +++ b/yobble/Resources/Localizable.xcstrings @@ -94,9 +94,6 @@ }, "Email не подтверждён. Подтвердите, чтобы активировать дополнительные проверки." : { "comment" : "Описание необходимости подтверждения email" - }, - "error" : { - }, "Fun Fest" : { "comment" : "Fun Fest", diff --git a/yobble/Views/Tab/Settings/BlockedUsersView.swift b/yobble/Views/Tab/Settings/BlockedUsersView.swift index f0b9368..d9c3064 100644 --- a/yobble/Views/Tab/Settings/BlockedUsersView.swift +++ b/yobble/Views/Tab/Settings/BlockedUsersView.swift @@ -30,8 +30,12 @@ struct BlockedUsersView: View { ProgressView() .frame(maxWidth: .infinity, alignment: .center) } - } else if errorMessageDown != nil{ - Text("error") + } else if let errorMessage = errorMessageDown { + Text(errorMessage) + .foregroundColor(.red) + .frame(maxWidth: .infinity, alignment: .center) + .listRowSeparator(.hidden) + .listRowBackground(Color.clear) } } }