-
Notifications
You must be signed in to change notification settings - Fork 105
add twap active orders table to the fe #1861
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
base: main
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
| case IndexerOrderStatus.ERROR: | ||
| return OrderStatus.Canceled; // Treat ERROR status as canceled |
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.
this case is already handled in line 232
| return calculateOrderHistory(orders); | ||
| }); | ||
|
|
||
| export const selectTWAPOrders = createAppSelector([selectAccountOrders], (orders) => { |
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.
Is there need for selecting TWAP orders that aren't open?
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.
can simplify 148 to just filtering TWAP from selectOpenOrders instead
| "@injectivelabs/sdk-ts": "1.16.10", | ||
| "@injectivelabs/ts-types": "1.16.10" |
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.
what is this
| }, | ||
| { | ||
| value: 'OrderHistory', | ||
| label: 'Order History', |
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.
stringGetter
| const tabItems: TabItem<string>[] = [ | ||
| { | ||
| value: 'Active', | ||
| label: 'Active', |
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.
stringGetter
| import { Tabs, type TabItem } from '@/components/Tabs'; | ||
| import { ActiveTWAPTable, ActiveTWAPTableColumnKey } from './ActiveTWAPTable'; | ||
|
|
||
| const tabItems: TabItem<string>[] = [ |
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.
put in the component w/ useMemo
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.
so you can localize
| }, | ||
| { | ||
| value: 'Fills', | ||
| label: 'Fills', |
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.
stringGetter
| label: 'Order History', | ||
| content: ( | ||
| <div> | ||
| <h1>Order History</h1> |
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.
stringGetter
| label: 'Fills', | ||
| content: ( | ||
| <div> | ||
| <h1>Fills</h1> |
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.
stringGetter
|
|
||
| const tabItems: TabItem<string>[] = [ | ||
| { | ||
| value: 'Active', |
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.
make values an enum
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.
or at least make it a type
type TWAPTableTabs = 'Active' | 'OrderHistory' | 'Fills';
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.
and use with the useState('Active')
No description provided.