Skip to content

Conversation

@jackburrus
Copy link
Contributor

@jackburrus jackburrus commented Oct 17, 2023

This PR refactors the markets table to use React Table and refactors some other pieces of the code.

@vercel
Copy link

vercel bot commented Oct 17, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hyperdrive-fixed-borrow ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 17, 2023 3:53pm
hyperdrive-monorepo-hyperdrive-trading ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 17, 2023 3:53pm
hyperdrive-sdk-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 17, 2023 3:53pm
trading-competition ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 17, 2023 3:53pm

baseAmountOut &&
formatBalance({
balance: row.original.bondAmount - baseAmountOut,
balance: baseAmountOut,
Copy link
Contributor Author

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

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.

@jackburrus
Copy link
Contributor Author

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

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