Skip to content

Commit

Permalink
Merge pull request #2338 from OneCommunityGlobal/development
Browse files Browse the repository at this point in the history
Frontend Release to Main [3.59]
  • Loading branch information
one-community authored Jun 8, 2024
2 parents 4ffbd25 + 79e2cd0 commit b69068b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
4 changes: 0 additions & 4 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<link rel="stylesheet" href="%PUBLIC_URL%/index.css" />
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico" />
<script
src="https://cdn.tiny.cloud/1/1rsz7lmakcvzg8trwjy91zht48pj4oubz8jrdyqxbbr63pvs/tinymce/5/tinymce.min.js"
referrerpolicy="origin"
></script>
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Expand Down
11 changes: 11 additions & 0 deletions src/components/UserProfile/AddNewUserProfile/UserProfileAdd.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ class UserProfileAdd extends Component {
actualEmail: 'Actual Email is required',
actualPassword: 'Actual Password is required',
actualConfirmedPassword: 'Actual Confirmed Password is required',
jobTitle: 'Job Title is required',
},
timeZoneFilter: '',
formSubmitted: false,
Expand Down Expand Up @@ -200,7 +201,9 @@ class UserProfileAdd extends Component {
value={jobTitle}
onChange={(e) => this.handleUserProfile(e)}
placeholder="Job Title"
invalid={!!this.state.formErrors.jobTitle}
/>
<FormFeedback className={fontWeight}>{this.state.formErrors.jobTitle}</FormFeedback>
</FormGroup>
</Col>
</Row>
Expand Down Expand Up @@ -1032,6 +1035,14 @@ class UserProfileAdd extends Component {
...this.state.userProfile,
jobTitle: event.target.value,
},
formValid: {
...formValid,
[event.target.id]: event.target.value.length > 0,
},
formErrors: {
...formErrors,
jobTitle: event.target.value.length > 0 ? '' : 'Job Title is required',
},
});
break;
case 'weeklyCommittedHours':
Expand Down

0 comments on commit b69068b

Please sign in to comment.