diff options
Diffstat (limited to 'src/containers/download-manager/DownloadManagerScreen.tsx')
-rw-r--r-- | src/containers/download-manager/DownloadManagerScreen.tsx | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/src/containers/download-manager/DownloadManagerScreen.tsx b/src/containers/download-manager/DownloadManagerScreen.tsx index cd9686f4d..3413be37a 100644 --- a/src/containers/download-manager/DownloadManagerScreen.tsx +++ b/src/containers/download-manager/DownloadManagerScreen.tsx | |||
@@ -1,15 +1,12 @@ | |||
1 | import { Component, type ReactElement } from 'react'; | ||
2 | import DownloadManager from '../../components/downloadManager/DownloadManagerDashboard'; | 1 | import DownloadManager from '../../components/downloadManager/DownloadManagerDashboard'; |
3 | import ErrorBoundary from '../../components/util/ErrorBoundary'; | 2 | import ErrorBoundary from '../../components/util/ErrorBoundary'; |
4 | 3 | ||
5 | class DownloadManagerScreen extends Component { | 4 | const DownloadManagerScreen = ({ ...props }) => { |
6 | render(): ReactElement { | 5 | return ( |
7 | return ( | 6 | <ErrorBoundary> |
8 | <ErrorBoundary> | 7 | <DownloadManager {...props} /> |
9 | <DownloadManager {...this.props} /> | 8 | </ErrorBoundary> |
10 | </ErrorBoundary> | 9 | ); |
11 | ); | 10 | }; |
12 | } | ||
13 | } | ||
14 | 11 | ||
15 | export default DownloadManagerScreen; | 12 | export default DownloadManagerScreen; |