DemocracyEarth / wallet

Censorship resistant democracies.
https://democracy.earth
MIT License
1.5k stars 286 forks source link

Feature/wallet context #526

Closed BrianCraig closed 3 years ago

BrianCraig commented 4 years ago

Hi! I've been working on adding a Wallet Context for encapsulationg connection & address logic. The idea is to use:

const { address, onConnect, onReset } = useContext(WalletContext);

on Functional Components to remove the neccesity of passing the address through props on a chain.

I also refactored some components to be Functional Components instead of class Components.

What do you think about this?

Brian

santisiri commented 3 years ago

Unfortunately many changes happened with the latest version of the code and now we have significan merge conflicts. I can't merge this as is right now.