This PR is dedicated towards integrating our existing functionality into Jagger's new frontend redesign. In this PR I have:
Added complete Redux integration
Added voting functionality
Added reading functionality from the blockchain and IPFS to populate cards
Added loading symbols in CardSection while data is loading in
Imported all existing APIs from 'main', as well as contract addresses and ABIs in config.js (data)
Added the ability to click on a card and be redirected to a 'view_proposal' page specific to that card.
I did this by creating a new state variable in Redux called 'selectedProposal'. When somebody clicks a card, we dispatch an action that updates this selectedProposal variable to be the proposal on the card that they clicked. Then, once we navigate to the view_proposal page, that page will access Redux state to see what 'selectedProposal' is equal to, and fill its data accordingly.
Still Needed:
Adding new proposals/grants (did not yet have time)
Refactoring Connect Wallet button (looks super goofy right now because I copy and pasted the existing one in)
It's possible I may have missed some stuff. I am going out of town tomorrow so I wanted to open this PR before I left. Let me know if there are any questions/concerns and I may be able to respond if I have time.
This PR is dedicated towards integrating our existing functionality into Jagger's new frontend redesign. In this PR I have:
Still Needed:
It's possible I may have missed some stuff. I am going out of town tomorrow so I wanted to open this PR before I left. Let me know if there are any questions/concerns and I may be able to respond if I have time.