From 0ac70a1a6091edb43521703ab69b59770b527141 Mon Sep 17 00:00:00 2001 From: mahdi Date: Mon, 16 May 2022 16:34:06 +0430 Subject: [PATCH] update 3 files and delete 2 files --- .../images/UploadFilefile.svg | 0 .../images/UploadFilepause.svg | 0 src/App.js | 9 +++++++-- src/components/UploadFile/index.js | 16 ++++++---------- src/mahdi.js | 18 ++++++++++++++++++ src/redux/data.js | 11 +++++++++++ 6 files changed, 42 insertions(+), 12 deletions(-) rename src/components/UploadFile/images/file.svg => public/images/UploadFilefile.svg (100%) rename src/components/UploadFile/images/pause.svg => public/images/UploadFilepause.svg (100%) create mode 100644 src/mahdi.js diff --git a/src/components/UploadFile/images/file.svg b/public/images/UploadFilefile.svg similarity index 100% rename from src/components/UploadFile/images/file.svg rename to public/images/UploadFilefile.svg diff --git a/src/components/UploadFile/images/pause.svg b/public/images/UploadFilepause.svg similarity index 100% rename from src/components/UploadFile/images/pause.svg rename to public/images/UploadFilepause.svg diff --git a/src/App.js b/src/App.js index 0532723..59fc1bf 100644 --- a/src/App.js +++ b/src/App.js @@ -5,7 +5,7 @@ import { Provider } from "react-redux"; import store from "./redux/store"; import "./App.scss"; -// const MyComp = lazy(() => import("./components/myComp")); +const MyMahdi = lazy(() => import("./mahdi")); // import "rc-slider/assets/index.css"; // import "react-circular-progressbar/dist/styles.css"; @@ -15,12 +15,17 @@ function App() { <>
mahdi lazy loaded
Loading...}> -

hi there i am loaded NOWW

+ // <> + //
mahdi lazy loaded
+ // Loading...}> + // + // + // ); } diff --git a/src/components/UploadFile/index.js b/src/components/UploadFile/index.js index 0b8802f..87f5a43 100644 --- a/src/components/UploadFile/index.js +++ b/src/components/UploadFile/index.js @@ -1,8 +1,5 @@ import React, { Component } from "react"; -import file from "./images/file.svg"; - -import pause from "./images/pause.svg"; import axios from "axios"; export default class UploadFile extends Component { @@ -48,12 +45,11 @@ export default class UploadFile extends Component { {/* ? upload input File */}
- + {uploadPercentage > 0 && ( @@ -65,7 +61,7 @@ export default class UploadFile extends Component { )}

- یک فایل را اینجا بکشید یا از{" "} + یک فایل را اینجا بکشید یا از رایانه خود انتخاب کنید

@@ -86,13 +82,13 @@ export default class UploadFile extends Component { 3 دقیقه باقیمانده {/* pause button */}
- + pic
-
+
diff --git a/src/mahdi.js b/src/mahdi.js new file mode 100644 index 0000000..c053496 --- /dev/null +++ b/src/mahdi.js @@ -0,0 +1,18 @@ +import React, { Component, lazy, Suspense } from "react"; +import { Provider } from "react-redux"; +import store from "./redux/store"; +import Router from "./router.js"; + +const mahdi = () => { + return ( + <> +

hi there i am loaded NOWW

+ + + + ; + + ); +}; + +export default mahdi; diff --git a/src/redux/data.js b/src/redux/data.js index cc73ca1..5bc9c56 100644 --- a/src/redux/data.js +++ b/src/redux/data.js @@ -35,6 +35,7 @@ import SelectBox from "../components/SelectBox"; import ProductCategories from "../components/ProductCategories"; import RangeSlider from "../components/RangeSlider"; import Stepper from "../components/Stepper"; +import UploadFile from "../components/UploadFile"; // mini components import MiniComponents from "../components/MiniComponents"; @@ -698,6 +699,16 @@ const components = [ code: null, }, }, + { + name: "Upload File", + author: "Andalib", + props: [], + content: { + name: "Upload File", + component: , + code: null, + }, + }, // mini components { name: "Mini Components",