@@ -56,7 +56,7 @@ export function Proposal({
5656 proposal,
5757 chainName,
5858 bondedTokens,
59- onVoteSuccess = ( ) => { } ,
59+ onVoteSuccess = ( ) => { } ,
6060} : ProposalProps ) {
6161 const vote = votes ?. [ proposal . id . toString ( ) ] ;
6262
@@ -92,9 +92,9 @@ export function Proposal({
9292
9393 const total = proposal . finalTallyResult
9494 ? Object . values ( proposal . finalTallyResult ) . reduce (
95- ( sum , val ) => sum + Number ( val ) ,
96- 0
97- )
95+ ( sum , val ) => sum + Number ( val ) ,
96+ 0
97+ )
9898 : 0 ;
9999
100100 const turnout = total / Number ( bondedTokens ) ;
@@ -248,9 +248,8 @@ export function Proposal({
248248 px : '$2' ,
249249 } }
250250 >
251- { `Minimum of staked ${ minStakedTokens } ${ coin . symbol } (${
252- quorum * 100
253- } %) need to vote
251+ { `Minimum of staked ${ minStakedTokens } ${ coin . symbol } (${ quorum * 100
252+ } %) need to vote
254253 for this proposal to pass.` }
255254 </ Text >
256255 </ Text >
@@ -347,14 +346,20 @@ export function Proposal({
347346 </ Text >
348347
349348 < Text fontSize = "$sm" fontWeight = "$normal" color = "$textSecondary" >
349+ < div style = { { maxHeight : '128px' , overflowY : 'scroll' } } >
350+ < Markdown > { description } </ Markdown >
351+ </ div >
352+ </ Text >
353+
354+ { /* <Text fontSize="$sm" fontWeight="$normal" color="$textSecondary">
350355 {showMore ? <Markdown>{description}</Markdown> : renderedDescription}
351356 </Text>
352357
353358 <Box mt="$8" width="100%" display="flex" justifyContent="center">
354359 <Button intent="secondary" variant="ghost" onClick={toggleShowMore}>
355360 {showMore ? 'Show less' : 'Show more'}
356361 </Button>
357- </ Box >
362+ </Box> */ }
358363 </ Box >
359364 </ Box >
360365 ) ;
0 commit comments