@@ -53,6 +53,10 @@ type ProposalWithOrder = Proposal & {
5353 order ?: number ;
5454} ;
5555
56+ type TreasuryProposalWithOrder = TreasuryProposal & {
57+ order ?: number ;
58+ }
59+
5660const PROPOSALS = environments . isProduction ( ) ? prodProposals : stagingProposals ;
5761const ZEIP_IDS = Object . keys ( PROPOSALS ) . map ( ( idString ) => parseInt ( idString , 10 ) ) ;
5862const ZEIP_PROPOSALS : ProposalWithOrder [ ] = ZEIP_IDS . map ( ( id ) => PROPOSALS [ id ] ) . sort (
@@ -146,7 +150,7 @@ interface Proposals {
146150export const VoteIndex : React . FC < VoteIndexProps > = ( ) => {
147151 const [ filter , setFilter ] = React . useState < string > ( 'all' ) ;
148152 const [ tallys , setTallys ] = React . useState < ZeipTallyMap > ( undefined ) ;
149- const [ proposals , setProposals ] = React . useState < ProposalWithOrder [ ] > ( [ ] ) ;
153+ const [ proposals , setProposals ] = React . useState < TreasuryProposalWithOrder [ ] > ( [ ] ) ;
150154 const [ quorumThreshold , setQuorumThreshold ] = React . useState < BigNumber > ( ) ;
151155 const [ isExpanded , setIsExpanded ] = React . useState < boolean > ( false ) ;
152156 const providerState = useSelector ( ( state : State ) => state . providerState ) ;
@@ -299,7 +303,7 @@ export const VoteIndex: React.FC<VoteIndexProps> = () => {
299303 } ) }
300304 { showTreasury . includes ( filter ) &&
301305 proposals . length > 0 &&
302- proposals . map ( ( proposal : TreasuryProposal ) => {
306+ proposals . map ( ( proposal : TreasuryProposalWithOrder ) => {
303307 const tally = {
304308 no : new BigNumber ( proposal . againstVotes . toString ( ) ) ,
305309 yes : new BigNumber ( proposal . forVotes . toString ( ) ) ,
0 commit comments