-
Notifications
You must be signed in to change notification settings - Fork 60
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
feat(gov): Format and display abi inputs on a proposal, show raw switch #316
base: v2
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
8 Skipped Deployments
|
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.
Well done, it's mostly UI feedbacks
Please let's add the token symbol here, i also wonder what happens if the address was not a token / does not have decimals
pls wrap each item of the array with a border
Raw data should still use the same UI wrapper but different content inside (calldata, value, target, function maybe printed as signature )
apps/hub/src/app/governance/[genre]/proposal/[proposalId]/Actions.tsx
Outdated
Show resolved
Hide resolved
apps/hub/src/app/governance/[genre]/proposal/[proposalId]/Actions.tsx
Outdated
Show resolved
Hide resolved
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.
dropped some coments, moreover this is still giving me error 500
<FormattedActionLine | ||
title="Vault Address" | ||
type="link" | ||
value={getRewardsVaultUrl(vaultAddress)} |
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.
<img | ||
src={props.imageUri} | ||
alt={String(value)} | ||
className="w-4 h-4 rounded-full" | ||
/> |
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.
{parsedMetadata.data && ( | ||
<> | ||
<FormattedActionLine | ||
key={name} | ||
title="Name" | ||
type="string" | ||
value={name} | ||
imageUri={logoURI} | ||
/> | ||
<FormattedActionLine key={url} title="URL" type="link" value={url} /> | ||
</> | ||
)} |
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.
Let's disable metadata parsing for now, or just let's not render it
Special formatting applied to:
Features: