File tree Expand file tree Collapse file tree 6 files changed +37
-4
lines changed
packages/template-retail-react-app
static/translations/compiled Expand file tree Collapse file tree 6 files changed +37
-4
lines changed Original file line number Diff line number Diff line change 77
88import React , { useEffect , useState } from 'react'
99import 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'
1212import {
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 }
Original file line number Diff line number Diff line change 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 ,
Original file line number Diff line number Diff line change 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 ,
Original file line number Diff line number Diff line change 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 ,
Original file line number Diff line number Diff line change 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 },
Original file line number Diff line number Diff line change 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 },
You can’t perform that action at this time.
0 commit comments