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

Edit label action on table's contextual menu #849

Merged
merged 9 commits into from
May 16, 2019
Merged

Conversation

delfipolito
Copy link
Contributor

No description provided.

@coveralls
Copy link

coveralls commented May 14, 2019

Coverage Status

Coverage remained the same at 97.015% when pulling a9dafcb on edit-label-on-table into bfe8173 on master.

@sohkai sohkai mentioned this pull request May 14, 2019
20 tasks
@delfipolito delfipolito requested review from bpierre and sohkai and removed request for sohkai May 15, 2019 18:46
@delfipolito delfipolito changed the title [WIP] Edit label action on table's contextual menu Edit label action on table's contextual menu May 15, 2019
Copy link
Contributor

@sohkai sohkai left a comment

Choose a reason for hiding this comment

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

Good job @delfipolito 😍!

@@ -9,6 +9,38 @@ const IdentityContext = React.createContext({
Promise.reject(Error('Please set resolve using IdentityProvider')),
})

export function useIdentity(address) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's move this down to the end of the file, and export it in the same export declaration as the other components here.

setName(metadata ? metadata.name : null)
}

const handleShowLocalIdentityModal = address => {
Copy link
Contributor

Choose a reason for hiding this comment

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

This and handleNameChange() could use useCallback()s

}
})
return () => subscription.unsubscribe()
}, [address])
Copy link
Contributor

Choose a reason for hiding this comment

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

This needs updates$ and handleNameChange in its dependencies.

}, [transactionHash, network])

const [label, showLocalIdentityModal] = useIdentity(entity)
const handleEditLabel = () => showLocalIdentityModal(entity)
Copy link
Contributor

Choose a reason for hiding this comment

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

This (and the equivalent in HolderRow) could be wrapped in a useCallback()

@bpierre bpierre merged commit eaea640 into master May 16, 2019
@bpierre bpierre deleted the edit-label-on-table branch May 16, 2019 09:08
@sohkai
Copy link
Contributor

sohkai commented May 16, 2019

Small nitpick, on the Token Manager, the spacing and stroke color looks a bit odd for the icon:

Screen Shot 2019-05-16 at 11 33 30 AM

MickdeGraaf pushed a commit to MickdeGraaf/aragon-apps that referenced this pull request Jan 28, 2020
ramilexe pushed a commit to ConsiderItDone/aragon-apps that referenced this pull request Dec 9, 2021
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.

4 participants