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 */}
-
+
-
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",