mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-17 16:50:22 +00:00
improve Uppy React example
@goto-bus-stop
This commit is contained in:
parent
c5cbc671f7
commit
645e15166a
1 changed files with 3 additions and 2 deletions
5
examples/react-example/App.js
vendored
5
examples/react-example/App.js
vendored
|
|
@ -18,11 +18,11 @@ module.exports = class App extends React.Component {
|
|||
}
|
||||
|
||||
componentWillMount () {
|
||||
this.uppy = new Uppy({ autoProceed: false })
|
||||
this.uppy = new Uppy({ id: 'uppy1', autoProceed: true, debug: true })
|
||||
.use(Tus, { endpoint: 'https://master.tus.io/files/' })
|
||||
.use(GoogleDrive, { host: 'https://server.uppy.io' })
|
||||
|
||||
this.uppy2 = new Uppy({ autoProceed: false })
|
||||
this.uppy2 = new Uppy({ id: 'uppy2', autoProceed: false, debug: true })
|
||||
.use(Tus, { endpoint: 'https://master.tus.io/files/' })
|
||||
}
|
||||
|
||||
|
|
@ -93,6 +93,7 @@ module.exports = class App extends React.Component {
|
|||
<h2>Progress Bar</h2>
|
||||
<ProgressBar
|
||||
uppy={this.uppy}
|
||||
hideAfterFinish={false}
|
||||
/>
|
||||
</div>
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue