ソースを参照

Prefix default plugin IDs when mounted by React components.

Renée Kooi 7 年 前
コミット
47ec01083b

+ 1 - 1
src/react/Dashboard.js

@@ -13,7 +13,7 @@ class Dashboard extends React.Component {
   componentDidMount () {
   componentDidMount () {
     const uppy = this.props.uppy
     const uppy = this.props.uppy
     const options = Object.assign(
     const options = Object.assign(
-      {},
+      { id: 'react:Dashboard' },
       this.props,
       this.props,
       { target: this.container }
       { target: this.container }
     )
     )

+ 1 - 1
src/react/DashboardModal.js

@@ -14,7 +14,7 @@ class DashboardModal extends React.Component {
   componentDidMount () {
   componentDidMount () {
     const uppy = this.props.uppy
     const uppy = this.props.uppy
     const options = Object.assign(
     const options = Object.assign(
-      {},
+      { id: 'react:DashboardModal' },
       this.props,
       this.props,
       {
       {
         onRequestCloseModal: this.props.onRequestClose
         onRequestCloseModal: this.props.onRequestClose

+ 1 - 1
src/react/DragDrop.js

@@ -13,7 +13,7 @@ class DragDrop extends React.Component {
   componentDidMount () {
   componentDidMount () {
     const uppy = this.props.uppy
     const uppy = this.props.uppy
     const options = Object.assign(
     const options = Object.assign(
-      {},
+      { id: 'react:DragDrop' },
       this.props,
       this.props,
       { target: this.container }
       { target: this.container }
     )
     )

+ 1 - 1
src/react/ProgressBar.js

@@ -13,7 +13,7 @@ class ProgressBar extends React.Component {
   componentDidMount () {
   componentDidMount () {
     const uppy = this.props.uppy
     const uppy = this.props.uppy
     const options = Object.assign(
     const options = Object.assign(
-      {},
+      { id: 'react:ProgressBar' },
       this.props,
       this.props,
       { target: this.container }
       { target: this.container }
     )
     )

+ 1 - 1
src/react/StatusBar.js

@@ -14,7 +14,7 @@ class StatusBar extends React.Component {
   componentDidMount () {
   componentDidMount () {
     const uppy = this.props.uppy
     const uppy = this.props.uppy
     const options = Object.assign(
     const options = Object.assign(
-      {},
+      { id: 'react:StatusBar' },
       this.props,
       this.props,
       { target: this.container }
       { target: this.container }
     )
     )