From d1ff086d15e12de263a4e5ef500a254e175dc67b Mon Sep 17 00:00:00 2001
From: Chris Veleris
Date: Wed, 13 Aug 2025 17:24:30 +0300
Subject: [PATCH] Add input user allowed for Telegram in settings
---
.../components/Profile/ProfileSettings.tsx | 23 +++++++++++++++----
1 file changed, 18 insertions(+), 5 deletions(-)
diff --git a/frontend/components/Profile/ProfileSettings.tsx b/frontend/components/Profile/ProfileSettings.tsx
index 3332a64..127a5d3 100644
--- a/frontend/components/Profile/ProfileSettings.tsx
+++ b/frontend/components/Profile/ProfileSettings.tsx
@@ -1441,7 +1441,8 @@ const ProfileSettings: React.FC = ({
type="text"
name="telegram_allowed_users"
value={
- formData.telegram_allowed_users || ''
+ formData.telegram_allowed_users ||
+ ''
}
onChange={handleChange}
placeholder="@username1, 123456789, @username2"
@@ -1456,7 +1457,10 @@ const ProfileSettings: React.FC = ({
- {t('profile.examples', 'Examples:')}
+ {t(
+ 'profile.examples',
+ 'Examples:'
+ )}
-
@@ -1464,21 +1468,30 @@ const ProfileSettings: React.FC = ({
@alice, @bob
{' - '}
- {t('profile.exampleUsernames', 'Allow specific usernames')}
+ {t(
+ 'profile.exampleUsernames',
+ 'Allow specific usernames'
+ )}
-
123456789, 987654321
{' - '}
- {t('profile.exampleUserIds', 'Allow specific user IDs')}
+ {t(
+ 'profile.exampleUserIds',
+ 'Allow specific user IDs'
+ )}
-
@alice, 123456789
{' - '}
- {t('profile.exampleMixed', 'Mix usernames and user IDs')}
+ {t(
+ 'profile.exampleMixed',
+ 'Mix usernames and user IDs'
+ )}