Skip to content

Commit

Permalink
fix: SKFP-1289 adjust landing button order and login button text (#4130)
Browse files Browse the repository at this point in the history
  • Loading branch information
aperron-ferlab authored Sep 30, 2024
1 parent cc3937a commit 1b114d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ const en = {
'Accelerating research and promoting new discoveries for children affected with cancer and structural birth defects.',
accessLargeScale:
'Data from over {count} samples, including whole genome sequencing (WGS) and RNA-Sequencing, is available to empower your research today.',
login: 'Log in',
login: 'Login',
signup: 'Sign up',
},
dashboard: {
Expand Down
8 changes: 3 additions & 5 deletions src/views/LandingPage/TopBanner/LoginForm/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import intl from 'react-intl-universal';
import { useKeycloak } from '@react-keycloak/web';
import { Space } from 'antd';
import LandingPageButton from 'views/LandingPage/Components/LandingPageButton';
import LandingPageParagraph from 'views/LandingPage/Components/LandingPageParagraph';
import LandingPageTitle from 'views/LandingPage/Components/LandingPageTitle';
Expand All @@ -18,7 +17,6 @@ export const LoginForm = () => {

const handleSignin = async () => {
const url = keycloak.createLoginUrl({
// eslint-disable-next-line max-len
redirectUri: `${window.location.origin}/${
query.get(REDIRECT_URI_KEY) || STATIC_ROUTES.DASHBOARD
}`,
Expand All @@ -44,12 +42,12 @@ export const LoginForm = () => {
</div>
</div>
<div className={styles.buttons}>
<LandingPageButton onClick={handleSignin} size="large">
{intl.get('screen.loginPage.signup')}
</LandingPageButton>
<LandingPageButton alt onClick={handleSignin} size="large">
{intl.get('screen.loginPage.login')}
</LandingPageButton>
<LandingPageButton onClick={handleSignin} size="large">
{intl.get('screen.loginPage.signup')}
</LandingPageButton>
</div>
</div>
);
Expand Down

0 comments on commit 1b114d5

Please sign in to comment.