Add header to all states.

pull/1/head
Neeraj Baid 11 years ago
parent 0615b5e495
commit ef1eb6debf

@ -55,11 +55,13 @@ export default class App extends React.Component {
render() { render() {
if (this.state.readyToUpload) { if (this.state.readyToUpload) {
return <div> return <div>
<Header />
<FileDescription file={this.state.uploadFile} /> <FileDescription file={this.state.uploadFile} />
<Tempalink token={this.state.uploadToken} /> <Tempalink token={this.state.uploadToken} />
</div>; </div>;
} else if (this.state.readyToDownload) { } else if (this.state.readyToDownload) {
return <div> return <div>
<Header />
<FileDescription file={this.state.downloadFile} /> <FileDescription file={this.state.downloadFile} />
<button onClick={this.downloadFile.bind(this)}>Download</button> <button onClick={this.downloadFile.bind(this)}>Download</button>
</div>; </div>;

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save