Skip to content
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

Markets Single Table #1307

Merged
merged 11 commits into from
Dec 7, 2023
Merged

Markets Single Table #1307

merged 11 commits into from
Dec 7, 2023

Conversation

franm91
Copy link
Member

@franm91 franm91 commented Dec 7, 2023

image
image

Copy link

vercel bot commented Dec 7, 2023

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

Name Status Preview Comments Updated (UTC)
app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 7, 2023 7:59pm

jgalat
jgalat previously approved these changes Dec 7, 2023
Copy link
Contributor

@jgalat jgalat left a comment

Choose a reason for hiding this comment

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

🚀

components/markets/MarketsTables/poolTable/index.tsx Outdated Show resolved Hide resolved
sebipap
sebipap previously approved these changes Dec 7, 2023
Copy link
Contributor

@sebipap sebipap left a comment

Choose a reason for hiding this comment

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

code LGTM

const defaultRows = useMemo<TableRow[]>(() => assets.map((s) => ({ symbol: s })), [assets]);
const { setOrderBy, sortData, direction: sortDirection, isActive: sortActive } = useSorting<TableRow>();
const tempRows = isLoading ? defaultRows : rows;

const getRateType = useCallback((maturity: bigint | undefined) => {
if (maturity === undefined) return 'floating';
Copy link
Contributor

Choose a reason for hiding this comment

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

minor: it could be

Suggested change
if (maturity === undefined) return 'floating';
return !!maturity ? 'fixed' : 'floating'

Copy link

sentry-io bot commented Dec 8, 2023

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ TypeError: Cannot mix BigInt and other types, use explicit conversions reduce(chunks/pages/components/markets/Header) View Issue

Did you find this useful? React with a 👍 or 👎

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.

3 participants