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

add genericscheme callData raw data to the proposal details view #2052

Merged
merged 3 commits into from
Aug 13, 2020

Conversation

dkent600
Copy link
Contributor

@dkent600 dkent600 commented Aug 10, 2020

Fixes #2021 for 2.0.

@dkent600 dkent600 changed the title all done? add genericcall callData raw data to the proposal details view Aug 10, 2020
@dkent600 dkent600 changed the title add genericcall callData raw data to the proposal details view add genericscheme callData raw data to the proposal details view Aug 10, 2020
@orenyodfat orenyodfat temporarily deployed to alchemy-showrawcalldata-ja1txn August 10, 2020 20:32 Inactive
@dkent600 dkent600 temporarily deployed to alchemy-showrawcalldata-ja1txn August 12, 2020 14:35 Inactive
<div>
<strong>NFT Contract:</strong> <a href={linkToEtherScan(decodedCallData.values[1])} target="_blank" rel="noopener noreferrer">{decodedCallData.values[1]}</a>
</div>
<div>
<strong>TokenID:</strong> {decodedCallData.values[2]}
</div>
<div>
<strong>Raw call data:</strong>
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't we prefer to eliminate the use of <strong> and define the layout using div and CSS?

Copy link
Contributor Author

@dkent600 dkent600 Aug 12, 2020

Choose a reason for hiding this comment

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

I just didn't feel like this time refactoring and testing the entire thing, so just copied the pattern that was there

Copy link
Contributor Author

@dkent600 dkent600 Aug 12, 2020

Choose a reason for hiding this comment

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

On the code like this that is coming in from outside contributors, we can hopefully get them to follow these standards before accepting their PRs.

@@ -16,6 +17,14 @@ interface IProps {

export default class ProposalSummaryCO2ken extends React.Component<IProps, null> {

private rawCallData(proposalState: IGenericPluginProposalState) {
return <>
<p>Raw call data:</p>
Copy link
Contributor

Choose a reason for hiding this comment

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

Please use i18next here and in the rest of the places.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@dkent600 dkent600 temporarily deployed to alchemy-showrawcalldata-ja1txn August 12, 2020 16:41 Inactive
@dkent600 dkent600 self-assigned this Aug 12, 2020
@dkent600 dkent600 added the 2.0 label Aug 12, 2020
@dkent600 dkent600 merged commit 39c2279 into dev-2 Aug 13, 2020
@dkent600 dkent600 deleted the showRawCallData-2 branch August 13, 2020 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants