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

Add price and keystore import tips #45

Merged
merged 5 commits into from
Apr 9, 2024
Merged

Add price and keystore import tips #45

merged 5 commits into from
Apr 9, 2024

Conversation

caosbad
Copy link
Contributor

@caosbad caosbad commented Apr 3, 2024

No description provided.

@@ -975,6 +988,12 @@ export class WalletController extends BaseController {
return Promise.resolve({
price: { last: '1.0', change: { percentage: '0.0' } },
});
case 'dust':
Copy link
Contributor

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.

`/api/prices`,
{},
{},
'https://test.lilico.app'
Copy link
Contributor

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

'https://test.lilico.app'
);

if (pricesMap && pricesMap['FlovatarDustToken']) {
Copy link
Contributor

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">
Copy link
Contributor

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 && (
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here

@lmcmz lmcmz merged commit 0ac1448 into onflow:master Apr 9, 2024
1 check 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.

2 participants