Skip to content

Update GasDetails.jsx#19

Open
Hemachandra9899 wants to merge 1 commit intotejareddy8888:mainfrom
Hemachandra9899:patch-9
Open

Update GasDetails.jsx#19
Hemachandra9899 wants to merge 1 commit intotejareddy8888:mainfrom
Hemachandra9899:patch-9

Conversation

@Hemachandra9899
Copy link
Contributor

optimized code for better UX

optimized code for better UX
"▓▓▓▓▓▓░░",
"▓▓▓▓▓▓▓░",
"▓▓▓▓▓▓▓▓",
];
Copy link
Owner

Choose a reason for hiding this comment

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

I would prefer maintaining constants in a different file. As it is just clear and it could be reused also

Copy link
Owner

Choose a reason for hiding this comment

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

Nevertheless, it is okay to have it in this file

const MAX_PRIORITY = 50;
const MIN_PRIORITY = 1;

const GasDetailsOutput = ({ txType, networkFeeData }) => {
Copy link
Owner

Choose a reason for hiding this comment

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

Why did we remove the networkFeeData ?

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