-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TAS-1816] 🚸 Display the reset password hint when hiding social options #60
[TAS-1816] 🚸 Display the reset password hint when hiding social options #60
Conversation
AuroraHuang22
commented
Jul 8, 2024
•
edited
Loading
edited
Use i18n? |
@nwingt updated |
src/components/authcore-dialog.tsx
Outdated
<FormattedMessage id="wallet_connect_hint_reset_password"/> | ||
<span className='lk-text-like-green'> | ||
<FormattedMessage id="wallet_connect_hint_reset_password_highlight"/> | ||
</span> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use function as the child syntax for this https://formatjs.io/docs/react-intl/components#function-as-the-child
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/i18n/translations/en.json
Outdated
@@ -22,6 +22,7 @@ | |||
"wallet_connect_header_title_open_app": "Launch App", | |||
"wallet_connect_header_title_scan_qrcode": "Scan QR Code", | |||
"wallet_connect_hint_approve": "Please approve the connection request in the app by clicking the button below.", | |||
"wallet_connect_hint_reset_password": "If you can't find your login method,<span>reset your password.</span>", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"wallet_connect_hint_reset_password": "If you can't find your login method,<span>reset your password.</span>", | |
"wallet_connect_hint_reset_password": "If you can't find your login method,<span>reset your password</span>.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/i18n/translations/zh.json
Outdated
@@ -22,6 +22,7 @@ | |||
"wallet_connect_header_title_open_app": "啟動 App", | |||
"wallet_connect_header_title_scan_qrcode": "掃描二維碼", | |||
"wallet_connect_hint_approve": "請點擊以下按鈕打開 App 並批准連接請求。", | |||
"wallet_connect_hint_reset_password": "若找不到您原先的登入方式,請<span>重設密碼</span>", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"wallet_connect_hint_reset_password": "若找不到您原先的登入方式,請<span>重設密碼</span>", | |
"wallet_connect_hint_reset_password": "若找不到您原先的登入方式,請<span>重設密碼</span>。", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/index.tsx
Outdated
resolve(undefined); | ||
this._events.emit('authcore_auth_closed'); | ||
}} | ||
isHideSocialLogin={!!(this.options.authcoreClientId === 'likecoin-app-hidesocial')} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please name this likecoin-app-hidesocial
and likecoin-app
as some constant.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -64,6 +64,11 @@ const SESSION_KEY = 'likecoin_wallet_connector_session'; | |||
|
|||
const WC_BRIGDE = 'https://bridge.walletconnect.org'; | |||
|
|||
const SOCIAL_LOGIN_OPTIONS = { | |||
HIDE_SOCIAL: 'likecoin-app-hidesocial', | |||
DEFAULT: 'likecoin-app', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also change
authcoreClientId: options.authcoreClientId || 'likecoin-app',
in line 135
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
8527d81
to
40d1747
Compare