Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Sort log info to display the latest trade at the top #3588

Merged
merged 3 commits into from
May 1, 2022

Conversation

farabi-deriv
Copy link

No description provided.

@@ -36,6 +36,17 @@ export const appendRow = (trade, state) => ({
],
});

export const appendRowTop = (trade, state) => ({
Copy link
Contributor

@sara-fs sara-fs Apr 25, 2022

Choose a reason for hiding this comment

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

Since we are repeating codes in this method and the codes above, is there a better way to mix them?

Copy link
Author

Choose a reason for hiding this comment

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

We can maybe mix them with conditional rendering using ternary operators.

Copy link
Contributor

Choose a reason for hiding this comment

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

Good job, I think we can only decide on ...state.rows, ...
Whatever you think is better

@mehrzad-fs mehrzad-fs merged commit 7c75c6e into binary-com:master May 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy