Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove redundant plugins prop from examples #5145

Merged
merged 4 commits into from
May 9, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/framework-integrations/react.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ function Component() {
// IMPORTANT: passing an initializer function to prevent Uppy from being reinstantiated on every render.
const [uppy] = useState(() => new Uppy().use(Webcam));

return <Dashboard uppy={uppy} plugins={['Webcam']} />;
return <Dashboard uppy={uppy} />;
}
```

Expand Down Expand Up @@ -180,7 +180,7 @@ function Component(props) {
uppy.getPlugin('Webcam').setOptions({ modes: props.webcamModes });
}, [props.webcamModes]);

return <Dashboard uppy={uppy} plugins={['Webcam']} />;
return <Dashboard uppy={uppy} />;
}
```

Expand Down
2 changes: 1 addition & 1 deletion docs/framework-integrations/svelte.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ JavaScript.
const uppy = new Uppy().use(Webcam);
</script>

<main><Dashboard uppy={uppy} plugins={["Webcam"]} /></main>
<main><Dashboard uppy="{uppy}" /></main>
```

[svelte]: https://svelte.dev
2 changes: 1 addition & 1 deletion docs/framework-integrations/vue.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ JavaScript.
</script>

<template>
<Dashboard :uppy="uppy" :plugins="['Webcam']" />
<Dashboard :uppy="uppy" />
</template>
```

Expand Down
Loading