remove progress bar for v2 proposals (#37)
This commit is contained in:
parent
9f485fabc4
commit
39f9cea42e
|
@ -145,44 +145,45 @@ export class ProposalCampaignBlock extends React.Component<Props, State> {
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{!isVersionTwo && isFundingOver ? (
|
{!isVersionTwo &&
|
||||||
<div
|
(isFundingOver ? (
|
||||||
className={classnames({
|
<div
|
||||||
['ProposalCampaignBlock-fundingOver']: true,
|
className={classnames({
|
||||||
['is-success']: isRaiseGoalReached,
|
['ProposalCampaignBlock-fundingOver']: true,
|
||||||
})}
|
['is-success']: isRaiseGoalReached,
|
||||||
>
|
})}
|
||||||
{isCancelled ? (
|
>
|
||||||
<>
|
{isCancelled ? (
|
||||||
<Icon type="close-circle-o" />
|
<>
|
||||||
<span>Proposal was canceled</span>
|
<Icon type="close-circle-o" />
|
||||||
</>
|
<span>Proposal was canceled</span>
|
||||||
) : isRaiseGoalReached ? (
|
</>
|
||||||
<>
|
) : isRaiseGoalReached ? (
|
||||||
<Icon type="check-circle-o" />
|
<>
|
||||||
<span>Proposal has been funded</span>
|
<Icon type="check-circle-o" />
|
||||||
</>
|
<span>Proposal has been funded</span>
|
||||||
) : (
|
</>
|
||||||
<>
|
) : (
|
||||||
<Icon type="close-circle-o" />
|
<>
|
||||||
<span>Proposal didn’t get funded</span>
|
<Icon type="close-circle-o" />
|
||||||
</>
|
<span>Proposal didn’t get funded</span>
|
||||||
)}
|
</>
|
||||||
</div>
|
)}
|
||||||
) : (
|
|
||||||
<>
|
|
||||||
<div className="ProposalCampaignBlock-bar">
|
|
||||||
<div
|
|
||||||
className="ProposalCampaignBlock-bar-inner"
|
|
||||||
style={{
|
|
||||||
width: `${percentFunded}%`,
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
|
) : (
|
||||||
|
<>
|
||||||
|
<div className="ProposalCampaignBlock-bar">
|
||||||
|
<div
|
||||||
|
className="ProposalCampaignBlock-bar-inner"
|
||||||
|
style={{
|
||||||
|
width: `${percentFunded}%`,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
{/* TODO: use this as a base for tipjar? */}
|
{/* TODO: use this as a base for tipjar? */}
|
||||||
|
|
||||||
{/* <Form layout="vertical" className="ProposalCampaignBlock-contribute">
|
{/* <Form layout="vertical" className="ProposalCampaignBlock-contribute">
|
||||||
<Form.Item
|
<Form.Item
|
||||||
validateStatus={amountError ? 'error' : undefined}
|
validateStatus={amountError ? 'error' : undefined}
|
||||||
help={amountError}
|
help={amountError}
|
||||||
|
@ -232,8 +233,8 @@ export class ProposalCampaignBlock extends React.Component<Props, State> {
|
||||||
Fund this project
|
Fund this project
|
||||||
</Button>
|
</Button>
|
||||||
</Form> */}
|
</Form> */}
|
||||||
</>
|
</>
|
||||||
)}
|
))}
|
||||||
|
|
||||||
{isVersionTwo &&
|
{isVersionTwo &&
|
||||||
isJudged && (
|
isJudged && (
|
||||||
|
|
Loading…
Reference in New Issue