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

LocalIdentity: polish and small fixes #677

Merged
merged 9 commits into from Apr 8, 2019
Merged

Conversation

sohkai
Copy link
Contributor

@sohkai sohkai commented Apr 4, 2019

Most important fix is to add the correct network to the IdentityBadges, but a couple of other small changes / improvements.

@sohkai sohkai requested review from bpierre and 2color April 4, 2019 17:05
@@ -85,8 +87,8 @@ const LocalIdentities = ({
<StyledExport
label="Export labels"
mode="secondary"
download={`aragon-labels_${today}.json`}
href={href}
download={`aragon-${locator.dao}_labels_${today}.json`}
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice!

@2color
Copy link
Contributor

2color commented Apr 8, 2019

LGTM so far.

@sohkai sohkai marked this pull request as ready for review April 8, 2019 09:55
@sohkai sohkai requested a review from 2color April 8, 2019 09:55
@sohkai
Copy link
Contributor Author

sohkai commented Apr 8, 2019

@bpierre @2color Ready for review :).

Copy link
Contributor

@2color 2color left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@bpierre bpierre left a comment

Choose a reason for hiding this comment

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

💯

@@ -1,5 +1,6 @@
import React from 'react'
import PropTypes from 'prop-types'
import keycodes from '../../keycodes'
Copy link
Contributor

Choose a reason for hiding this comment

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

🙆‍♂️

@@ -27,11 +22,11 @@ LocalIdentityModal.propTypes = {

const Modal = ({ address, label, onCancel, onSave }) => {
const [action, setAction] = React.useState()
Copy link
Contributor

Choose a reason for hiding this comment

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

Not related to this PR, but I think it could be a good practice to always set a default for useState(), even if we want undefined.

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 in 5b78370.

@@ -110,7 +107,7 @@ const Wrap = styled.div`
padding: 16px 32px;
max-width: 50vw;
/* wide identity badge + paddings */
min-width: calc(400px + 32px * 2);
min-width: ${400 + 32 * 2}px;
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@sohkai sohkai merged commit a6e3a5c into master Apr 8, 2019
@sohkai sohkai deleted the localidentity-polish branch April 8, 2019 13:31
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.

None yet

3 participants