Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Components modification for new TXs tab. #37

Merged
merged 31 commits into from
Jul 23, 2020
Merged

Components modification for new TXs tab. #37

merged 31 commits into from
Jul 23, 2020

Conversation

nicosampler
Copy link
Contributor

Closes Issue #36.

@ghost
Copy link

ghost commented Jul 17, 2020

Travis automatic deployment:
https://pr37--safereactcomponents.review.gnosisdev.com

@ghost
Copy link

ghost commented Jul 20, 2020

Travis automatic deployment:
https://pr37--safereactcomponents.review.gnosisdev.com

@ghost
Copy link

ghost commented Jul 20, 2020

Travis automatic deployment:
https://pr37--safereactcomponents.review.gnosisdev.com

@ghost
Copy link

ghost commented Jul 20, 2020

Travis automatic deployment:
https://pr37--safereactcomponents.review.gnosisdev.com

@ghost
Copy link

ghost commented Jul 21, 2020

Travis automatic deployment:
https://pr37--safereactcomponents.review.gnosisdev.com

@github-actions
Copy link

github-actions bot commented Jul 21, 2020

ESLint Summary View Full Report

Annotations are provided inline on the Files Changed tab. You can also see all annotations that were generated on the annotations page.

Type Occurrences Fixable
Errors 0 0
Warnings 8 0
Ignored 0 N/A
  • Result: ✅ success

  • Annotations: 8 total


[warning] @typescript-eslint/no-unused-vars

Disallow unused variables


[warning] @typescript-eslint/no-explicit-any

Disallow usage of the any type


Report generated by eslint-plus-action

@ghost
Copy link

ghost commented Jul 21, 2020

Travis automatic deployment:
https://pr37--safereactcomponents.review.gnosisdev.com

1 similar comment
@ghost
Copy link

ghost commented Jul 21, 2020

Travis automatic deployment:
https://pr37--safereactcomponents.review.gnosisdev.com

@nicosampler
Copy link
Contributor Author

@mikheevm , I'm completely agreed on using this new linter, but we should not add it in a feature. we should add it in a new PR, because we have to fix a lot of code not related to the intention of the feature

@mmv08
Copy link
Member

mmv08 commented Jul 21, 2020

@nicosampler it lints changed files in a PR and the changes in PR should follow ESLint rules

@ghost
Copy link

ghost commented Jul 21, 2020

Travis automatic deployment:
https://pr37--safereactcomponents.review.gnosisdev.com

@nicosampler
Copy link
Contributor Author

@mikheevm I fixed the errors for the files related to this PR. Other fixes should be done in another PR.
Let's please merge this PR, because there are others depending on it

@mmv08
Copy link
Member

mmv08 commented Jul 21, 2020

@nicosampler please fix other easy-to-fix issues (like prettier)

@ghost
Copy link

ghost commented Jul 21, 2020

Travis automatic deployment:
https://pr37--safereactcomponents.review.gnosisdev.com

@mmv08
Copy link
Member

mmv08 commented Jul 21, 2020

Please fix other easy to fix issues like no return types, unused vars, etc, it shouldn't take that long

@nicosampler
Copy link
Contributor Author

@mikheevm done!

@ghost
Copy link

ghost commented Jul 21, 2020

Travis automatic deployment:
https://pr37--safereactcomponents.review.gnosisdev.com

@ghost
Copy link

ghost commented Jul 21, 2020

Travis automatic deployment:
https://pr37--safereactcomponents.review.gnosisdev.com

<FixedDialog
title="Legal Disclaimer"
body={<div>Some Body</div>}
onCancel={() => {}}
onConfirm={() => {}}
onCancel={() => undefined}
Copy link
Member

Choose a reason for hiding this comment

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

could've used console.log

Copy link
Contributor Author

Choose a reason for hiding this comment

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

if we use console.log shouldn't it be a little noisy in production?

Copy link
Member

Choose a reason for hiding this comment

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

this is a story



].map((type: any, index) => (
{icons.map((type, index) => (
<IconBox key={index}>
Copy link
Member

Choose a reason for hiding this comment

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

could've used type as a key. This makes no different in this case, but just fyi

Copy link
Contributor Author

Choose a reason for hiding this comment

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

not sure to understand? could you give me an example?

Copy link
Member

Choose a reason for hiding this comment

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

<IconBox key={type}>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ohh yes! I was thinking about something with TS.

Comment on lines 7 to 8
color: keyof Theme['colors'];
size: keyof Theme['statusDot']['size'];
Copy link
Member

Choose a reason for hiding this comment

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

Could be exported to a separate type

@@ -22,7 +22,7 @@ const Button = ({
color,
variant,
...rest
}: Props) => {
}: Props): React.ReactElement => {
Copy link
Member

Choose a reason for hiding this comment

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

please remove any in props for this component

@ghost
Copy link

ghost commented Jul 22, 2020

Travis automatic deployment:
https://pr37--safereactcomponents.review.gnosisdev.com

@nicosampler
Copy link
Contributor Author

@mikheevm done!

@ghost
Copy link

ghost commented Jul 22, 2020

Travis automatic deployment:
https://pr37--safereactcomponents.review.gnosisdev.com

@nicosampler nicosampler merged commit 269b406 into development Jul 23, 2020
@nicosampler nicosampler deleted the issue-36 branch July 23, 2020 13:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants