download sections and progess bars

This commit is contained in:
SpikeHD
2022-05-11 19:20:08 -07:00
parent de9f9e1404
commit 414a9eaa86
10 changed files with 123 additions and 6 deletions

View File

@@ -0,0 +1,27 @@
import React from 'react'
import DownloadHandler from '../../../utils/download'
import ProgressBar from './ProgressBar'
import './DownloadSection.css'
interface IProps {
downloadManager: DownloadHandler;
downloadName: string;
}
export default class MiniDialog extends React.Component<IProps, never> {
constructor(props: IProps) {
super(props)
}
render() {
return (
<div className="DownloadSection">
<span>{this.props.downloadName}</span>
<div className="DownloadSectionInner">
<ProgressBar path={this.props.downloadName} downloadManager={this.props.downloadManager} />
</div>
</div>
)
}
}