style(linkedaccounts): use applicationName in page description

This commit is contained in:
Michael Thomas
2024-11-12 11:31:54 -05:00
parent dbc1cb0a77
commit 56004b056f
2 changed files with 7 additions and 3 deletions

View File

@@ -24,7 +24,7 @@ const messages = defineMessages(
{
linkedAccounts: 'Linked Accounts',
linkedAccountsHint:
'These external accounts are linked to your Jellyseerr account.',
'These external accounts are linked to your {applicationName} account.',
noLinkedAccounts:
'You do not have any external accounts linked to your account.',
noPermissionDescription:
@@ -65,6 +65,8 @@ const UserLinkedAccountsSettings = () => {
const [showJellyfinModal, setShowJellyfinModal] = useState(false);
const [error, setError] = useState<string | null>(null);
const applicationName = settings.currentSettings.applicationTitle;
const accounts: LinkedAccount[] = useMemo(() => {
const accounts: LinkedAccount[] = [];
if (!user) return accounts;
@@ -191,7 +193,9 @@ const UserLinkedAccountsSettings = () => {
{intl.formatMessage(messages.linkedAccounts)}
</h3>
<h6 className="description">
{intl.formatMessage(messages.linkedAccountsHint)}
{intl.formatMessage(messages.linkedAccountsHint, {
applicationName,
})}
</h6>
</div>
{currentUser?.id == user?.id && !!linkable.length && (

View File

@@ -1315,7 +1315,7 @@
"components.UserProfile.UserSettings.UserLinkedAccountsSettings.deleteFailed": "Unable to delete linked account.",
"components.UserProfile.UserSettings.UserLinkedAccountsSettings.errorUnknown": "An unknown error occurred",
"components.UserProfile.UserSettings.UserLinkedAccountsSettings.linkedAccounts": "Linked Accounts",
"components.UserProfile.UserSettings.UserLinkedAccountsSettings.linkedAccountsHint": "These external accounts are linked to your Jellyseerr account.",
"components.UserProfile.UserSettings.UserLinkedAccountsSettings.linkedAccountsHint": "These external accounts are linked to your {applicationName} account.",
"components.UserProfile.UserSettings.UserLinkedAccountsSettings.noLinkedAccounts": "You do not have any external accounts linked to your account.",
"components.UserProfile.UserSettings.UserLinkedAccountsSettings.noPermissionDescription": "You do not have permission to modify this user's linked accounts.",
"components.UserProfile.UserSettings.UserLinkedAccountsSettings.plexErrorExists": "This account is already linked to a Plex user",