-
Notifications
You must be signed in to change notification settings - Fork 4
Refactor markets table #438
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
| baseAmountOut && | ||
| formatBalance({ | ||
| balance: row.original.bondAmount - baseAmountOut, | ||
| balance: baseAmountOut, |
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.
Fixed the value here like we talked about on the implied yield call yesterday.
| const ALL_TERM_LENGTHS_KEY = 0; | ||
| const columnHelper = createColumnHelper<MarketTableRowData>(); | ||
|
|
||
| function columns() { |
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.
nit: Is it idiomatic react-table to call this function just columns? Feels we should be calling this getColumns(), but willing to do whatever the common practice is here.
Agreed. I'll change this over in the other tables as well |
This PR refactors the markets table to use React Table and refactors some other pieces of the code.