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

@@ -110,7 +110,7 @@ export const Login = () => {
/>
<PasswordInput
label={t("placeholder.password")}
label={t("label.password")}
error={!!errors.password}
required
InputProps={{

View File

@@ -206,7 +206,7 @@ export const Register = () => {
</ContentItem>
<ContentItem>
<PasswordInput
label={t("placeholder.password")}
label={t("label.password")}
error={!!errors.password}
required
{...register("password", validationRules.password)}

View File

@@ -1,5 +1,5 @@
/*
* Copyright © 2024 Hexastack. All rights reserved.
* Copyright © 2025 Hexastack. All rights reserved.
*
* Licensed under the GNU Affero General Public License v3.0 (AGPLv3) with the following additional terms:
* 1. The name "Hexabot" is a trademark of Hexastack. You may not use this name in derivative works without express written permission.
@@ -69,7 +69,7 @@ export const ResetPassword = () => {
</Typography>
<PasswordInput
autoFocus
label={t("placeholder.password")}
label={t("label.password")}
error={!!errors.password}
required
InputProps={{

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,