aufacicenta / splitfund-contracts

Sp/itfund is a co-ownership protocol built on NEAR.
https://splitfund.xyz
2 stars 1 forks source link

NEAR Wallet Widget #2

Closed netpoe closed 2 years ago

netpoe commented 2 years ago

Refer to NFME WalletSelector component and implement it for NEAR: https://github.com/aufacicenta/bancosatoshi/blob/513ee2e9dc9b5181c10051d1bc332f7efce50078/src/ui/wallet-selector/WalletSelector.tsx

Refer to the NEAR examples to implement the new useWalletSelectorContext: https://github.com/near-examples/rust-status-message/blob/master/frontend/App.js#L47-L57

Expected functionality: Using the styles that WalletSelector component already has, implement a widget similar to this one: Screen Shot 2022-01-10 at 19.38.17.png

...that: a) gets the wallet name and its balance b) requests to signin with a redirection to the NEAR wallet if the wallet is not connected c) the user can signout or disconnect the wallet

NOTE

Clone the repo from https://github.com/aufacicenta/near.holdings-web which holds the latest code of our template