Skip to content
This repository has been archived by the owner on Dec 1, 2020. It is now read-only.

fix: mui spinner + progress #18

Merged
merged 1 commit into from Feb 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -29,7 +29,7 @@
"bignumber.js": "^7.2.1",
"bn.js": "^4.11.8",
"dapp-styles": "git+https://github.com/ethereum/dapp-styles.git",
"ethereum-react-components": "^1.13.0",
"ethereum-react-components": "^1.13.7",
"lodash": "^4.17.11",
"moment": "^2.22.2",
"numeral": "^2.0.6",
Expand Down
17 changes: 8 additions & 9 deletions src/containers/Network/ClientDownload.jsx
@@ -1,5 +1,5 @@
import React, { Component } from 'react'
import { Select, Button, Spinner } from 'ethereum-react-components'
import { Select, Button, Spinner, Progress } from 'ethereum-react-components'
import { Mist } from '../../API'

const { geth } = Mist
Expand Down Expand Up @@ -90,7 +90,9 @@ export default class ClientDownload extends Component {
return (
<div>
{releases.length === 0 ? (
<Spinner />
<div>
<Spinner />
</div>
) : (
<Select
isDisabled={downloading}
Expand All @@ -100,16 +102,13 @@ export default class ClientDownload extends Component {
/>
)}
{downloading && (
<progress
style={{ width: '100%' }}
value={downloadProgress}
max="100"
/>
<div style={{ marginTop: 20 }}>
<Progress value={downloadProgress} max="100" />
</div>
)}
<Button
style={{ marginTop: 20 }}
loading={downloading}
disabled={!selectedClient}
disabled={!selectedClient || downloading}
onClick={this.handleDownloadClicked}
>
download
Expand Down