-
Notifications
You must be signed in to change notification settings - Fork 6
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
Add price and keystore import tips #45
Conversation
src/background/controller/wallet.ts
Outdated
@@ -975,6 +988,12 @@ export class WalletController extends BaseController { | |||
return Promise.resolve({ | |||
price: { last: '1.0', change: { percentage: '0.0' } }, | |||
}); | |||
case 'dust': |
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.
Why we need this ? It looks like no extendable.
Please use token contract name instead of token name.
src/background/service/openapi.ts
Outdated
`/api/prices`, | ||
{}, | ||
{}, | ||
'https://test.lilico.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.
For production, it's different endpoint. Put it in ENV file
src/background/service/openapi.ts
Outdated
'https://test.lilico.app' | ||
); | ||
|
||
if (pricesMap && pricesMap['FlovatarDustToken']) { |
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.
Why we need handle FlovatarDustToken
separately ?
@@ -168,6 +180,11 @@ const JsonImport = ({ onOpen, onImport, setPk, isSignLoading }) => { | |||
</Typography> | |||
</Button> | |||
</form> | |||
{errorMesssage && ( | |||
<Alert severity="warning"> |
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.
Refer to our default error message in design, do not use alert.
@@ -168,6 +180,11 @@ const JsonImport = ({ onOpen, onImport, setPk, isSignLoading }) => { | |||
</Typography> | |||
</Button> | |||
</form> | |||
{errorMesssage && ( |
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.
Same here
No description provided.