Skip to content
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

Merged
merged 5 commits into from
Jul 16, 2024

Conversation

AuroraHuang22
Copy link
Contributor

@AuroraHuang22 AuroraHuang22 commented Jul 8, 2024

截圖 2024-07-08 下午6 52 45

Copy link

@nwingt
Copy link
Member

nwingt commented Jul 8, 2024

Use i18n?

@AuroraHuang22
Copy link
Contributor Author

@nwingt updated
🌐 Apply i18n to hint

Comment on lines 37 to 40
<FormattedMessage id="wallet_connect_hint_reset_password"/>
<span className='lk-text-like-green'>
<FormattedMessage id="wallet_connect_hint_reset_password_highlight"/>
</span>
Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AuroraHuang22 AuroraHuang22 requested a review from nwingt July 8, 2024 13:37
@@ -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>",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"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>.",

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -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>",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"wallet_connect_hint_reset_password": "若找不到您原先的登入方式,請<span>重設密碼</span>",
"wallet_connect_hint_reset_password": "若找不到您原先的登入方式,請<span>重設密碼</span>",

Copy link
Contributor Author

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')}
Copy link
Member

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.

Copy link
Contributor Author

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',
Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AuroraHuang22 AuroraHuang22 force-pushed the feature/reset-password-hint branch from 8527d81 to 40d1747 Compare July 16, 2024 10:20
@williamchong williamchong merged commit 01ffa5c into likecoin:main Jul 16, 2024
0 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants