@arcblock/ux 2.12.49 → 2.12.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/Util/constant.d.ts
CHANGED
package/lib/Util/constant.js
CHANGED
@@ -37,7 +37,8 @@ export const LOGIN_PROVIDER_NAME = {
|
|
37
37
|
|
38
38
|
// HACK: 目前这里的键值不能使用 [LOGIN_PROVIDER.AUTH0] 形式,否则会影响 ts 的 keyof typeof OAUTH_PROVIDER 来获取键值作为类型的判断
|
39
39
|
export const OAUTH_PROVIDER = {
|
40
|
-
|
40
|
+
email: 'Email',
|
41
|
+
auth0: 'Auth0',
|
41
42
|
apple: 'Apple',
|
42
43
|
github: 'Github',
|
43
44
|
google: 'Google'
|
@@ -6,7 +6,7 @@ import LanguageIcon from '@iconify-icons/material-symbols/language';
|
|
6
6
|
import AndroidIcon from '@iconify-icons/material-symbols/android';
|
7
7
|
import QuestionMarkRoundedIcon from '@iconify-icons/material-symbols/question-mark-rounded';
|
8
8
|
// import Auth0Icon from '@iconify-icons/logos/auth0-icon';
|
9
|
-
import
|
9
|
+
import mailOutlineRoundedIcon from '@iconify-icons/material-symbols/mail-outline-rounded';
|
10
10
|
import { LOGIN_PROVIDER } from '../Util/constant';
|
11
11
|
export default function WalletOSIcon({
|
12
12
|
loading = false,
|
@@ -22,9 +22,13 @@ export default function WalletOSIcon({
|
|
22
22
|
}
|
23
23
|
});
|
24
24
|
}
|
25
|
+
|
26
|
+
// if (provider === LOGIN_PROVIDER.EMAIL) {
|
27
|
+
// return <Icon icon={mailOutlineRoundedIcon} style={{ color, transform: 'scale(0.85)' }} />;
|
28
|
+
// }
|
25
29
|
if (provider === LOGIN_PROVIDER.AUTH0) {
|
26
30
|
return /*#__PURE__*/_jsx(Icon, {
|
27
|
-
icon:
|
31
|
+
icon: mailOutlineRoundedIcon,
|
28
32
|
style: {
|
29
33
|
color,
|
30
34
|
transform: 'scale(0.85)'
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@arcblock/ux",
|
3
|
-
"version": "2.12.
|
3
|
+
"version": "2.12.50",
|
4
4
|
"description": "Common used react components for arcblock products",
|
5
5
|
"keywords": [
|
6
6
|
"react",
|
@@ -69,12 +69,12 @@
|
|
69
69
|
"react": ">=18.2.0",
|
70
70
|
"react-router-dom": ">=6.22.3"
|
71
71
|
},
|
72
|
-
"gitHead": "
|
72
|
+
"gitHead": "85caf36c4d787fc11751943d907a54458c29e9f4",
|
73
73
|
"dependencies": {
|
74
74
|
"@arcblock/did-motif": "^1.1.13",
|
75
|
-
"@arcblock/icons": "^2.12.
|
76
|
-
"@arcblock/nft-display": "^2.12.
|
77
|
-
"@arcblock/react-hooks": "^2.12.
|
75
|
+
"@arcblock/icons": "^2.12.50",
|
76
|
+
"@arcblock/nft-display": "^2.12.50",
|
77
|
+
"@arcblock/react-hooks": "^2.12.50",
|
78
78
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
79
79
|
"@fontsource/inter": "^5.0.16",
|
80
80
|
"@fontsource/ubuntu-mono": "^5.0.18",
|
package/src/Util/constant.ts
CHANGED
@@ -43,7 +43,8 @@ export const LOGIN_PROVIDER_NAME = {
|
|
43
43
|
|
44
44
|
// HACK: 目前这里的键值不能使用 [LOGIN_PROVIDER.AUTH0] 形式,否则会影响 ts 的 keyof typeof OAUTH_PROVIDER 来获取键值作为类型的判断
|
45
45
|
export const OAUTH_PROVIDER = {
|
46
|
-
|
46
|
+
email: 'Email',
|
47
|
+
auth0: 'Auth0',
|
47
48
|
apple: 'Apple',
|
48
49
|
github: 'Github',
|
49
50
|
google: 'Google',
|
@@ -5,7 +5,7 @@ import LanguageIcon from '@iconify-icons/material-symbols/language';
|
|
5
5
|
import AndroidIcon from '@iconify-icons/material-symbols/android';
|
6
6
|
import QuestionMarkRoundedIcon from '@iconify-icons/material-symbols/question-mark-rounded';
|
7
7
|
// import Auth0Icon from '@iconify-icons/logos/auth0-icon';
|
8
|
-
import
|
8
|
+
import mailOutlineRoundedIcon from '@iconify-icons/material-symbols/mail-outline-rounded';
|
9
9
|
import { LOGIN_PROVIDER } from '../Util/constant';
|
10
10
|
|
11
11
|
export interface WalletOSIconProps {
|
@@ -20,8 +20,11 @@ export default function WalletOSIcon({ loading = false, walletOS, provider, colo
|
|
20
20
|
return <Icon icon={QuestionMarkRoundedIcon} style={{ color: 'transparent' }} />;
|
21
21
|
}
|
22
22
|
|
23
|
+
// if (provider === LOGIN_PROVIDER.EMAIL) {
|
24
|
+
// return <Icon icon={mailOutlineRoundedIcon} style={{ color, transform: 'scale(0.85)' }} />;
|
25
|
+
// }
|
23
26
|
if (provider === LOGIN_PROVIDER.AUTH0) {
|
24
|
-
return <Icon icon={
|
27
|
+
return <Icon icon={mailOutlineRoundedIcon} style={{ color, transform: 'scale(0.85)' }} />;
|
25
28
|
}
|
26
29
|
if (walletOS === 'ios') {
|
27
30
|
return <Icon icon={IOSRoundedIcon} style={{ color, transform: 'scale(1.1)' }} />;
|