|
@@ -35,6 +35,8 @@ export default class Instagram<M extends Meta, B extends Body> extends UIPlugin<
|
|
|
|
|
|
files: UppyFile<M, B>[]
|
|
|
|
|
|
+ rootFolderId: string | null = 'recent'
|
|
|
+
|
|
|
constructor(uppy: Uppy<M, B>, opts: InstagramOptions) {
|
|
|
super(uppy, opts)
|
|
|
this.type = 'acquirer'
|
|
@@ -90,7 +92,6 @@ export default class Instagram<M extends Meta, B extends Body> extends UIPlugin<
|
|
|
supportsRefreshToken: false,
|
|
|
})
|
|
|
|
|
|
- this.onFirstRender = this.onFirstRender.bind(this)
|
|
|
this.render = this.render.bind(this)
|
|
|
}
|
|
|
|
|
@@ -114,13 +115,6 @@ export default class Instagram<M extends Meta, B extends Body> extends UIPlugin<
|
|
|
this.unmount()
|
|
|
}
|
|
|
|
|
|
- async onFirstRender(): Promise<void> {
|
|
|
- await Promise.all([
|
|
|
- this.provider.fetchPreAuthToken(),
|
|
|
- this.view.getFolder('recent'),
|
|
|
- ])
|
|
|
- }
|
|
|
-
|
|
|
render(state: unknown): ComponentChild {
|
|
|
return this.view.render(state)
|
|
|
}
|