Skip to content

Commit bef76be

Browse files
committed
revert unnecessary changes made in login/index.jsx
1 parent 88419a6 commit bef76be

File tree

6 files changed

+37
-4
lines changed

6 files changed

+37
-4
lines changed

packages/template-retail-react-app/app/pages/login/index.jsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
import React, {useEffect, useState} from 'react'
99
import PropTypes from 'prop-types'
10-
import {useIntl, defineMessage} from 'react-intl'
11-
import {Box, Container} from '@salesforce/retail-react-app/app/components/shared/ui'
10+
import {useIntl, defineMessage, FormattedMessage} from 'react-intl'
11+
import {Box, Container, Heading} from '@salesforce/retail-react-app/app/components/shared/ui'
1212
import {
1313
AuthHelpers,
1414
useAuthHelper,
@@ -186,6 +186,9 @@ const Login = ({initialView = LOGIN_VIEW}) => {
186186

187187
return (
188188
<Box data-testid="login-page" bg="gray.50" py={[8, 16]}>
189+
<Heading as="h1" srOnly>
190+
<FormattedMessage defaultMessage="Sign In" id="login.title.sign_in" />
191+
</Heading>
189192
<Seo title="Sign in" description="Customer sign in" />
190193
<Container
191194
paddingTop={16}
@@ -200,8 +203,6 @@ const Login = ({initialView = LOGIN_VIEW}) => {
200203
form={form}
201204
submitForm={submitForm}
202205
clickCreateAccount={() => navigate('/registration')}
203-
// We let submitForm handle passwordless login to ensure when the form submission
204-
// is triggered in other ways like pressing Enter it is handled correctly
205206
handlePasswordlessLoginClick={noop}
206207
handleForgotPasswordClick={() => navigate('/reset-password')}
207208
isPasswordlessEnabled={isPasswordlessEnabled}

packages/template-retail-react-app/app/static/translations/compiled/en-GB.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2831,6 +2831,12 @@
28312831
"value": "Chinese (Taiwan)"
28322832
}
28332833
],
2834+
"login.title.sign_in": [
2835+
{
2836+
"type": 0,
2837+
"value": "Sign In"
2838+
}
2839+
],
28342840
"login_form.action.create_account": [
28352841
{
28362842
"type": 0,

packages/template-retail-react-app/app/static/translations/compiled/en-US.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2831,6 +2831,12 @@
28312831
"value": "Chinese (Taiwan)"
28322832
}
28332833
],
2834+
"login.title.sign_in": [
2835+
{
2836+
"type": 0,
2837+
"value": "Sign In"
2838+
}
2839+
],
28342840
"login_form.action.create_account": [
28352841
{
28362842
"type": 0,

packages/template-retail-react-app/app/static/translations/compiled/en-XA.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5983,6 +5983,20 @@
59835983
"value": "]"
59845984
}
59855985
],
5986+
"login.title.sign_in": [
5987+
{
5988+
"type": 0,
5989+
"value": "["
5990+
},
5991+
{
5992+
"type": 0,
5993+
"value": "Şīɠƞ Īƞ"
5994+
},
5995+
{
5996+
"type": 0,
5997+
"value": "]"
5998+
}
5999+
],
59866000
"login_form.action.create_account": [
59876001
{
59886002
"type": 0,

packages/template-retail-react-app/translations/en-GB.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1188,6 +1188,9 @@
11881188
"locale_text.message.zh-TW": {
11891189
"defaultMessage": "Chinese (Taiwan)"
11901190
},
1191+
"login.title.sign_in": {
1192+
"defaultMessage": "Sign In"
1193+
},
11911194
"login_form.action.create_account": {
11921195
"defaultMessage": "Create account"
11931196
},

packages/template-retail-react-app/translations/en-US.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1188,6 +1188,9 @@
11881188
"locale_text.message.zh-TW": {
11891189
"defaultMessage": "Chinese (Taiwan)"
11901190
},
1191+
"login.title.sign_in": {
1192+
"defaultMessage": "Sign In"
1193+
},
11911194
"login_form.action.create_account": {
11921195
"defaultMessage": "Create account"
11931196
},

0 commit comments

Comments
 (0)