Skip to content

Commit

Permalink
add * in fields
Browse files Browse the repository at this point in the history
  • Loading branch information
nenichv committed Jul 4, 2024
1 parent bccb3cc commit 9c07a19
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
16 changes: 12 additions & 4 deletions apps/schools/domains/user/components/profile/profileEdit/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,13 @@ export function ProfileEdit() {
>
<Form.Item
required={true}
label={'Ф. И. О.'}
label={
<span>
<span className={styles.requiredMark}>*</span> Ф.И.О.
</span>
}
name={USER_NAME}
rules={[...validators[USER_NAME], { required: true, message: '' }]}
rules={validators[USER_NAME]}
className={styles.label}
initialValue={initialValues[USER_NAME]}
>
Expand All @@ -72,9 +76,13 @@ export function ProfileEdit() {

<Form.Item
required={true}
label={'Email сотрудника'}
label={
<span>
<span className={styles.requiredMark}>*</span> Email сотрудника
</span>
}
name={USER_EMAIL}
rules={[...validators[USER_EMAIL], { required: true, message: '' }]}
rules={validators[USER_EMAIL]}
className={styles.label}
initialValue={initialValues[USER_EMAIL]}
>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import '../../../../../common/components/styles/abstracts/colors';

.baseRowContainer {
padding-bottom: 50px;

Expand All @@ -19,3 +21,7 @@
}
}
}

.requiredMark{
color: $color-required-mark;
}

0 comments on commit 9c07a19

Please sign in to comment.