浏览代码

Remove redundant `plugins` prop from examples (#5145)

Merlijn Vos 1 年之前
父节点
当前提交
61647c7821

+ 2 - 2
docs/framework-integrations/react.mdx

@@ -122,7 +122,7 @@ function Component() {
 	// IMPORTANT: passing an initializer function to prevent Uppy from being reinstantiated on every render.
 	// IMPORTANT: passing an initializer function to prevent Uppy from being reinstantiated on every render.
 	const [uppy] = useState(() => new Uppy().use(Webcam));
 	const [uppy] = useState(() => new Uppy().use(Webcam));
 
 
-	return <Dashboard uppy={uppy} plugins={['Webcam']} />;
+	return <Dashboard uppy={uppy} />;
 }
 }
 ```
 ```
 
 
@@ -180,7 +180,7 @@ function Component(props) {
 		uppy.getPlugin('Webcam').setOptions({ modes: props.webcamModes });
 		uppy.getPlugin('Webcam').setOptions({ modes: props.webcamModes });
 	}, [props.webcamModes]);
 	}, [props.webcamModes]);
 
 
-	return <Dashboard uppy={uppy} plugins={['Webcam']} />;
+	return <Dashboard uppy={uppy} />;
 }
 }
 ```
 ```
 
 

+ 2 - 2
docs/framework-integrations/svelte.mdx

@@ -50,7 +50,7 @@ instance can be passed into components as an `uppy` prop. Due to the way Svelte
 handles reactivity, you can initialize Uppy the same way you would with vanilla
 handles reactivity, you can initialize Uppy the same way you would with vanilla
 JavaScript.
 JavaScript.
 
 
-```html
+```svelte
 <script>
 <script>
 	import { Dashboard } from '@uppy/svelte';
 	import { Dashboard } from '@uppy/svelte';
 	import Uppy from '@uppy/core';
 	import Uppy from '@uppy/core';
@@ -64,7 +64,7 @@ JavaScript.
 	const uppy = new Uppy().use(Webcam);
 	const uppy = new Uppy().use(Webcam);
 </script>
 </script>
 
 
-<main><Dashboard uppy={uppy} plugins={["Webcam"]} /></main>
+<main><Dashboard uppy={uppy} /></main>
 ```
 ```
 
 
 [svelte]: https://svelte.dev
 [svelte]: https://svelte.dev

+ 1 - 1
docs/framework-integrations/vue.mdx

@@ -66,7 +66,7 @@ JavaScript.
 </script>
 </script>
 
 
 <template>
 <template>
-	<Dashboard :uppy="uppy" :plugins="['Webcam']" />
+	<Dashboard :uppy="uppy" />
 </template>
 </template>
 ```
 ```