File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed
Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -30,8 +30,8 @@ function MyApp() {
3030``` jsx live
3131< ImageUpload
3232 value= {[
33- " /img/undraw_docusaurus_mountain.svg" ,
34- " /img/undraw_docusaurus_react.svg" ,
33+ " .. /img/undraw_docusaurus_mountain.svg" ,
34+ " .. /img/undraw_docusaurus_react.svg" ,
3535 ]}
3636 max= {5 }
3737 dropzoneOptions= {{ onDragEnter : (evt ) => console .log (evt) }}
@@ -61,9 +61,9 @@ function MyApp() {
6161``` jsx live
6262< ImageUpload
6363 value= {[
64- " /img/undraw_docusaurus_mountain.svg" ,
65- " /img/undraw_docusaurus_react.svg" ,
66- " /img/undraw_docusaurus_tree.svg" ,
64+ " .. /img/undraw_docusaurus_mountain.svg" ,
65+ " .. /img/undraw_docusaurus_react.svg" ,
66+ " .. /img/undraw_docusaurus_tree.svg" ,
6767 ]}
6868 readonly
6969/ >
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import Link from "@docusaurus/Link";
33import useDocusaurusContext from "@docusaurus/useDocusaurusContext" ;
44import Layout from "@theme/Layout" ;
55import Heading from "@theme/Heading" ;
6+ import useBaseUrl from "@docusaurus/useBaseUrl" ;
67
78import styles from "./index.module.css" ;
89import { ImageUpload } from "@fourcels/react-image-upload" ;
@@ -44,9 +45,9 @@ export default function Home(): JSX.Element {
4445 < div className = { styles . example } >
4546 < ImageUpload
4647 value = { [
47- "img/undraw_docusaurus_mountain.svg" ,
48- "img/undraw_docusaurus_react.svg" ,
49- "img/undraw_docusaurus_tree.svg" ,
48+ useBaseUrl ( "img/undraw_docusaurus_mountain.svg" ) ,
49+ useBaseUrl ( "img/undraw_docusaurus_react.svg" ) ,
50+ useBaseUrl ( "img/undraw_docusaurus_tree.svg" ) ,
5051 ] }
5152 />
5253 </ div >
You can’t perform that action at this time.
0 commit comments