fix(frontend): apply feedback

This commit is contained in:
yassinedorbozgithub
2025-05-26 18:21:06 +01:00
parent c1db0c7ad0
commit fb2fb691fe
9 changed files with 21 additions and 15 deletions

View File

@@ -157,7 +157,7 @@ export const NlpValueForm: FC<ComponentFormProps<INlpValue, INlpEntity>> = ({
helperText={errors.metadata?.pattern?.message}
error={!!errors.metadata?.pattern}
label={t("label.regex")}
placeholder={t("label.pattern")}
placeholder={t("placeholder.pattern")}
flags={["i"]}
/>
</ContentItem>

View File

@@ -177,7 +177,7 @@ export const ProfileForm: FC<ProfileFormProps> = ({ user }) => {
</ContentItem>
<ContentItem>
<PasswordInput
label={t("placeholder.password")}
label={t("label.password")}
{...register("password", validationRules.password)}
required
error={!!errors.password}

View File

@@ -118,7 +118,7 @@ const SettingInput: React.FC<RenderSettingInputProps> = ({
entity={EntityType.BLOCK}
format={Format.BASIC}
labelKey="name"
label={t("help.fallback_message")}
label={t("label.fallback_message")}
helperText={t("help.fallback_message")}
multiple={false}
onChange={(_e, selected, ..._) => onChange(selected?.id || "")}

View File

@@ -76,7 +76,7 @@ export const EditUserForm: FC<ComponentFormProps<IUser, IRole[]>> = ({
<ContentItem>
<Input
disabled
label={t("placeholder.full_name")}
label={t("label.full_name")}
value={user ? getFullName(user) : undefined}
InputProps={{
readOnly: true,