diff --git a/lib/components/Centered.js b/lib/components/Centered.js index ee88844..69101e3 100644 --- a/lib/components/Centered.js +++ b/lib/components/Centered.js @@ -3,51 +3,15 @@ import React from 'react' export default class Centered extends React.Component { render() { - const h = this.props.hor - const v = this.props.ver - - if (h && v) { - - return
-
-
- {this.props.children} -
-
-
- - } else if (h && !v) { - - return
-
- {this.props.children} -
+ return
+
+ {this.props.children}
- - } else if (!h && v) { - - return
-
- {this.props.children} -
-
- - } else { - - return this.props.children - - } +
} } diff --git a/lib/components/DownloadPage.js b/lib/components/DownloadPage.js index 6da838b..7f31093 100644 --- a/lib/components/DownloadPage.js +++ b/lib/components/DownloadPage.js @@ -38,7 +38,7 @@ export default class DownloadPage extends React.Component { render() { switch (this.state.status) { case 'ready': - return + return

FilePizza

+ return

FilePizza

case 'cancelled': - return + return

FilePizza

case 'done': - return + return

FilePizza

- + @@ -65,7 +65,7 @@ export default class UploadPage extends React.Component { case 'processing': - return + return @@ -77,7 +77,7 @@ export default class UploadPage extends React.Component { case 'uploading': var keys = Object.keys(this.state.peerProgress) keys.reverse() - return + return

FilePizza