Переглянути джерело

highlight the “no target on React Dashboard” deal in docs

https://github.com/transloadit/uppy/issues/2609
Artur Paikin 4 роки тому
батько
коміт
6b3b1daca3
1 змінених файлів з 2 додано та 2 видалено
  1. 2 2
      website/src/docs/react-dashboard.md

+ 2 - 2
website/src/docs/react-dashboard.md

@@ -43,13 +43,13 @@ Styles for Provider plugins, like Google Drive and Instagram, are also bundled w
 
 The `<Dashboard />` component supports all [`@uppy/dashboard`][] options as props. Additionally, an Uppy instance must be provided in the `uppy={}` prop: see [Initializing Uppy](/docs/react/initializing) for details.
 
-The `<Dashboard />` cannot be passed to a `target:` option of a remote provider or plugins such as [`@uppy/webcam`][]. To use other plugins like [`@uppy/webcam`][] with the `<Dashboard />` component, first add them to the Uppy instance, and then specify their `id` in the [`plugins`](/docs/dashboard/#plugins) prop:
+> The `<Dashboard />` cannot be passed to a `target:` option of a remote provider or plugins such as [`@uppy/webcam`][]. To use other plugins like [`@uppy/webcam`][] (Image Editor, Google Drive, etc) with the `<Dashboard />` component, first add them to the Uppy instance, and then specify their `id` in the [`plugins`](/docs/dashboard/#plugins) prop:
 
 ```js
 function Uploader () {
   const uppy = React.useMemo(() => {
     return Uppy()
-      .use(Webcam) // `id` defaults to "Webcam"
+      .use(Webcam) // `id` defaults to "Webcam". Note: no `target` option!
       // or
       .use(Webcam, { id: 'MyWebcam' }) // `id` is… "MyWebcam"
   }, [])