Skip to content

Commit

Permalink
feat: Make it more visible that user invites can be accepted by loggi…
Browse files Browse the repository at this point in the history
…ng in, in addition to signing up (#5077)
  • Loading branch information
rolodato authored Feb 6, 2025
1 parent 895e5b8 commit d508e34
Showing 1 changed file with 27 additions and 24 deletions.
51 changes: 27 additions & 24 deletions frontend/web/components/pages/HomePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ const HomePage = class extends React.Component {
// can handle always setting the marketing consent.
API.setCookie('marketing_consent_given', 'true')
this.state = {
allRequirementsMet: false,
email: '',
first_name: '',
last_name: '',
password: '',
marketing_consent_given: true,
allRequirementsMet: false,
password: '',
}

this.handlePasswordChange = this.handlePasswordChange.bind(this)
Expand Down Expand Up @@ -368,7 +368,7 @@ const HomePage = class extends React.Component {
/>
</span>
<p className='notification__text pl-3'>
Login to accept your invite
Log in to accept your invite
</p>
</div>
)}
Expand Down Expand Up @@ -544,15 +544,30 @@ const HomePage = class extends React.Component {
</FormGroup>
)}
{isInvite && (
<div className='notification flex-row'>
<span className='notification__icon mb-2'>
<IonIcon
icon={informationCircleOutline}
/>
</span>
<p className='notification__text pl-3'>
Create an account to accept your invite
</p>
<div>
<div className='notification flex-row'>
<span className='notification__icon mb-2'>
<IonIcon
icon={informationCircleOutline}
/>
</span>
<p className='notification__text pl-3'>
Create an account to accept your
invite
</p>
</div>
<Row className='justify-content-center'>
Have an account?{' '}
<Button
theme='text'
className='ml-1 fw-bold'
onClick={() => {
window.location.href = `/login${redirect}`
}}
>
Log in
</Button>
</Row>
</div>
)}
<fieldset id='details' className=''>
Expand Down Expand Up @@ -664,18 +679,6 @@ const HomePage = class extends React.Component {
</form>
)}
</Card>
<Row className='justify-content-center'>
Have an account?{' '}
<Button
theme='text'
className='ml-1 fw-bold'
onClick={() => {
window.location.href = `/login${redirect}`
}}
>
Log in
</Button>
</Row>
</React.Fragment>
)}
</div>
Expand Down

0 comments on commit d508e34

Please sign in to comment.