feat(auth-control): Adding phone number labels to mobile verification configurations in multiple languages

This commit is contained in:
web@ppanel
2025-02-10 13:03:48 +07:00
parent fea2171d54
commit 046740f037
25 changed files with 52 additions and 1 deletions
@@ -358,6 +358,34 @@ export default function Page() {
</TableCell>
</TableRow>
)}
{platformConfig?.phone_number && (
<TableRow>
<TableCell>
<Label>{t('phoneNumberLabel')}</Label>
<p className='text-muted-foreground text-xs'>
{t('platformConfigTip', { key: platformConfig?.phone_number })}
</p>
</TableCell>
<TableCell className='text-right'>
<Textarea
defaultValue={data?.config?.platform_config?.phone_variable ?? ''}
onBlur={(e) =>
updateConfig('config', {
...data?.config,
platform_config: {
...data?.config?.platform_config,
phone_variable: e.target.value,
},
})
}
disabled={isFetching}
placeholder={t('platformConfigTip', {
key: platformConfig?.phone_number,
})}
/>
</TableCell>
</TableRow>
)}
{platformConfig?.code_variable && (
<TableRow>
<TableCell>