File tree Expand file tree Collapse file tree 3 files changed +11
-57
lines changed Expand file tree Collapse file tree 3 files changed +11
-57
lines changed Original file line number Diff line number Diff line change @@ -77,55 +77,17 @@ export default class VotingUnavailable extends Component<Props> {
7777 onExternalLinkClick ,
7878 } = this . props ;
7979
80- const heading = intl . formatMessage ( messages . heading ) ;
81- const paragraph1 = intl . formatMessage ( messages . paragraph1 , {
82- currentFundNumber : CURRENT_VOTING_FUND_NUMBER ,
83- nextVotingFundNumber : NEXT_VOTING_FUND_NUMBER ,
84- } ) ;
85- const link1 = (
86- < Link
87- className = { styles . link }
88- label = { intl . formatMessage ( messages . link1Text ) }
89- onClick = { ( ) =>
90- onExternalLinkClick ( intl . formatMessage ( messages . link1Url ) )
91- }
92- />
93- ) ;
94- const link2 = (
95- < Link
96- className = { styles . link }
97- label = { intl . formatMessage ( messages . link2Text ) }
98- onClick = { ( ) =>
99- onExternalLinkClick ( intl . formatMessage ( messages . link2Url ) )
100- }
101- />
102- ) ;
103-
10480 return (
10581 < div className = { styles . component } >
106- { isVotingRegistrationAvailable ? (
107- < >
108- < LoadingSpinner big />
109- < div className = { styles . description } >
110- < FormattedHTMLMessage
111- { ...globalMessages . featureUnavailableWhileSyncing }
112- values = { {
113- syncPercentage : new BigNumber ( syncPercentage ) . toFormat ( 2 ) ,
114- } }
115- />
116- </ div >
117- </ >
118- ) : (
119- < >
120- < h1 > { heading } </ h1 >
121- < p > { paragraph1 } </ p >
122- < FormattedMessage
123- { ...messages . paragraph2 }
124- values = { { link1, link2 } }
125- tagName = "p"
126- />
127- </ >
128- ) }
82+ < LoadingSpinner big />
83+ < div className = { styles . description } >
84+ < FormattedHTMLMessage
85+ { ...globalMessages . featureUnavailableWhileSyncing }
86+ values = { {
87+ syncPercentage : new BigNumber ( syncPercentage ) . toFormat ( 2 ) ,
88+ } }
89+ />
90+ </ div >
12991 </ div >
13092 ) ;
13193 }
Original file line number Diff line number Diff line change 11// @flow
22const { isDev } = global . environment ;
33
4- export const IS_VOTING_REGISTRATION_AVAILABLE = true ;
54export const CURRENT_VOTING_FUND_NUMBER = 7 ;
65export const NEXT_VOTING_FUND_NUMBER = CURRENT_VOTING_FUND_NUMBER + 1 ;
76export const VOTING_REGISTRATION_MIN_WALLET_FUNDS = 500 ; // 500 ADA | unit: ADA
Original file line number Diff line number Diff line change 22import React , { Component } from 'react' ;
33import { observer , inject } from 'mobx-react' ;
44import Layout from '../MainLayout' ;
5- import {
6- IS_VOTING_REGISTRATION_AVAILABLE ,
7- VOTING_REGISTRATION_MIN_WALLET_FUNDS ,
8- } from '../../config/votingConfig' ;
5+ import { VOTING_REGISTRATION_MIN_WALLET_FUNDS } from '../../config/votingConfig' ;
96import VerticalFlexContainer from '../../components/layout/VerticalFlexContainer' ;
107import VotingInfo from '../../components/voting/voting-info/VotingInfo' ;
118import VotingNoWallets from '../../components/voting/VotingNoWallets' ;
@@ -32,14 +29,10 @@ export default class VotingRegistrationPage extends Component<Props> {
3229 const { isSynced, syncPercentage } = networkStatus ;
3330 const { openExternalLink } = app ;
3431
35- if (
36- ! IS_VOTING_REGISTRATION_AVAILABLE ||
37- ( ! isSynced && ! isVotingRegistrationDialogOpen )
38- ) {
32+ if ( ! isSynced && ! isVotingRegistrationDialogOpen ) {
3933 return (
4034 < VotingUnavailable
4135 syncPercentage = { syncPercentage }
42- isVotingRegistrationAvailable = { IS_VOTING_REGISTRATION_AVAILABLE }
4336 onExternalLinkClick = { openExternalLink }
4437 />
4538 ) ;
You can’t perform that action at this time.
0 commit comments