(
- `
- Long sleeves black denim jacket with a twisted design. Contrast stitching. Button up closure. White arrow prints on the back.
-
`
- );
-
- return (
-
-
- Product Information
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Description
-
- (optional)
-
-
-
-
-
-
-
-
-
- Category
-
-
- }
- />
-
-
-
- Color
-
-
- }
- />
-
-
-
-
-
- );
-}
-
-export default ProductInfo;
diff --git a/src/layouts/ecommerce/products/edit-product/components/Socials/index.tsx b/src/layouts/ecommerce/products/edit-product/components/Socials/index.tsx
deleted file mode 100644
index bf6690c..0000000
--- a/src/layouts/ecommerce/products/edit-product/components/Socials/index.tsx
+++ /dev/null
@@ -1,52 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// @mui material components
-import Card from "@mui/material/Card";
-import Grid from "@mui/material/Grid";
-
-// Material Dashboard 2 PRO React TS components
-import MDBox from "components/MDBox";
-import MDTypography from "components/MDTypography";
-
-// EditProduct page components
-import FormField from "layouts/ecommerce/products/edit-product/components/FormField";
-
-function Socials(): JSX.Element {
- return (
-
-
-
- Socials
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- );
-}
-
-export default Socials;
diff --git a/src/layouts/ecommerce/products/edit-product/index.tsx b/src/layouts/ecommerce/products/edit-product/index.tsx
deleted file mode 100644
index cc72055..0000000
--- a/src/layouts/ecommerce/products/edit-product/index.tsx
+++ /dev/null
@@ -1,82 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// @mui material components
-import Grid from "@mui/material/Grid";
-
-// Material Dashboard 2 PRO React TS components
-import MDBox from "components/MDBox";
-import MDTypography from "components/MDTypography";
-import MDButton from "components/MDButton";
-
-// Material Dashboard 2 PRO React TS examples components
-import DashboardLayout from "examples/LayoutContainers/DashboardLayout";
-import DashboardNavbar from "examples/Navbars/DashboardNavbar";
-import Footer from "examples/Footer";
-
-// EditProduct page components
-import ProductImage from "layouts/ecommerce/products/edit-product/components/ProductImage";
-import ProductInfo from "layouts/ecommerce/products/edit-product/components/ProductInfo";
-import Socials from "layouts/ecommerce/products/edit-product/components/Socials";
-import Pricing from "layouts/ecommerce/products/edit-product/components/Pricing";
-
-function EditProduct(): JSX.Element {
- return (
-
-
-
-
-
-
-
- Make the changes below
-
-
-
- We’re constantly trying to express ourselves and actualize our dreams. If you have
- the opportunity to play.
-
-
-
-
-
-
- save
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- );
-}
-
-export default EditProduct;
diff --git a/src/layouts/ecommerce/products/new-product/components/FormField/index.tsx b/src/layouts/ecommerce/products/new-product/components/FormField/index.tsx
deleted file mode 100644
index 0923ecc..0000000
--- a/src/layouts/ecommerce/products/new-product/components/FormField/index.tsx
+++ /dev/null
@@ -1,29 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// Material Dashboard 2 PRO React TS components
-import MDInput from "components/MDInput";
-
-// Declaring props types for FormField
-interface Props {
- label: string;
- [key: string]: any;
-}
-
-function FormField({ label, ...rest }: Props): JSX.Element {
- return ;
-}
-
-export default FormField;
diff --git a/src/layouts/ecommerce/products/new-product/components/Media/index.tsx b/src/layouts/ecommerce/products/new-product/components/Media/index.tsx
deleted file mode 100644
index eee7bec..0000000
--- a/src/layouts/ecommerce/products/new-product/components/Media/index.tsx
+++ /dev/null
@@ -1,44 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-import { useMemo } from "react";
-
-// Material Dashboard 2 PRO React TS components
-import MDBox from "components/MDBox";
-import MDTypography from "components/MDTypography";
-import MDDropzone from "components/MDDropzone";
-
-function Media(): JSX.Element {
- return (
-
- Media
-
-
-
- Product Image
-
-
- {useMemo(
- () => (
-
- ),
- []
- )}
-
-
- );
-}
-
-export default Media;
diff --git a/src/layouts/ecommerce/products/new-product/components/Pricing/index.tsx b/src/layouts/ecommerce/products/new-product/components/Pricing/index.tsx
deleted file mode 100644
index 35e4e59..0000000
--- a/src/layouts/ecommerce/products/new-product/components/Pricing/index.tsx
+++ /dev/null
@@ -1,70 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// @mui material components
-import Grid from "@mui/material/Grid";
-import Autocomplete from "@mui/material/Autocomplete";
-
-// Material Dashboard 2 PRO React TS components
-import MDBox from "components/MDBox";
-import MDTypography from "components/MDTypography";
-import MDInput from "components/MDInput";
-
-// NewProduct page components
-import FormField from "layouts/ecommerce/products/new-product/components/FormField";
-
-function Pricing(): JSX.Element {
- return (
-
- Pricing
-
-
-
-
-
-
- }
- />
-
-
-
-
-
-
-
-
-
-
-
- Tags
-
-
- }
- />
-
-
-
-
- );
-}
-
-export default Pricing;
diff --git a/src/layouts/ecommerce/products/new-product/components/ProductInfo/index.tsx b/src/layouts/ecommerce/products/new-product/components/ProductInfo/index.tsx
deleted file mode 100644
index 753c811..0000000
--- a/src/layouts/ecommerce/products/new-product/components/ProductInfo/index.tsx
+++ /dev/null
@@ -1,104 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-import { useState } from "react";
-
-// @mui material components
-import Grid from "@mui/material/Grid";
-import Autocomplete from "@mui/material/Autocomplete";
-
-// Material Dashboard 2 PRO React TS components
-import MDBox from "components/MDBox";
-import MDTypography from "components/MDTypography";
-import MDEditor from "components/MDEditor";
-import MDInput from "components/MDInput";
-
-// NewProduct page components
-import FormField from "layouts/ecommerce/products/new-product/components/FormField";
-
-function ProductInfo(): JSX.Element {
- const [editorValue, setEditorValue] = useState(
- "Some initial bold text
"
- );
-
- return (
-
- Product Information
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Description
-
- (optional)
-
-
-
-
-
-
-
-
-
- Category
-
-
- }
- />
-
-
-
- Size
-
-
- }
- />
-
-
-
-
- );
-}
-
-export default ProductInfo;
diff --git a/src/layouts/ecommerce/products/new-product/components/Socials/index.tsx b/src/layouts/ecommerce/products/new-product/components/Socials/index.tsx
deleted file mode 100644
index aef4dfb..0000000
--- a/src/layouts/ecommerce/products/new-product/components/Socials/index.tsx
+++ /dev/null
@@ -1,49 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// @mui material components
-import Grid from "@mui/material/Grid";
-
-// Material Dashboard 2 PRO React TS components
-import MDBox from "components/MDBox";
-import MDTypography from "components/MDTypography";
-
-// NewProduct page components
-import FormField from "layouts/ecommerce/products/new-product/components/FormField";
-
-function Socials(): JSX.Element {
- return (
-
-
- Socials
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- );
-}
-
-export default Socials;
diff --git a/src/layouts/ecommerce/products/new-product/index.tsx b/src/layouts/ecommerce/products/new-product/index.tsx
deleted file mode 100644
index e1f94c7..0000000
--- a/src/layouts/ecommerce/products/new-product/index.tsx
+++ /dev/null
@@ -1,124 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-import { useState } from "react";
-
-// @mui material components
-import Grid from "@mui/material/Grid";
-import Stepper from "@mui/material/Stepper";
-import Step from "@mui/material/Step";
-import StepLabel from "@mui/material/StepLabel";
-import Card from "@mui/material/Card";
-
-// Material Dashboard 2 PRO React TS components
-import MDBox from "components/MDBox";
-import MDButton from "components/MDButton";
-import MDTypography from "components/MDTypography";
-
-// Material Dashboard 2 PRO React TS examples components
-import DashboardLayout from "examples/LayoutContainers/DashboardLayout";
-import DashboardNavbar from "examples/Navbars/DashboardNavbar";
-import Footer from "examples/Footer";
-
-// NewProduct page components
-import ProductInfo from "layouts/ecommerce/products/new-product/components/ProductInfo";
-import Media from "layouts/ecommerce/products/new-product/components/Media";
-import Socials from "layouts/ecommerce/products/new-product/components/Socials";
-import Pricing from "layouts/ecommerce/products/new-product/components/Pricing";
-
-function getSteps(): string[] {
- return ["1. Product Info", "2. Media", "3. Social", "4. Pricing"];
-}
-
-function getStepContent(stepIndex: number): JSX.Element {
- switch (stepIndex) {
- case 0:
- return ;
- case 1:
- return ;
- case 2:
- return ;
- case 3:
- return ;
- default:
- return null;
- }
-}
-
-function NewProduct(): JSX.Element {
- const [activeStep, setActiveStep] = useState(0);
- const steps = getSteps();
- const isLastStep: boolean = activeStep === steps.length - 1;
-
- const handleNext = () => setActiveStep(activeStep + 1);
- const handleBack = () => setActiveStep(activeStep - 1);
-
- return (
-
-
-
-
-
-
-
-
- Add New Product
-
-
-
- This information will describe more about the product.
-
-
-
-
-
- {steps.map((label) => (
-
- {label}
-
- ))}
-
-
-
-
- {getStepContent(activeStep)}
-
- {activeStep === 0 ? (
-
- ) : (
-
- back
-
- )}
-
- {isLastStep ? "send" : "next"}
-
-
-
-
-
-
-
-
-
-
- );
-}
-
-export default NewProduct;
diff --git a/src/layouts/ecommerce/products/product-page/components/ProductCell/index.tsx b/src/layouts/ecommerce/products/product-page/components/ProductCell/index.tsx
deleted file mode 100644
index de1389e..0000000
--- a/src/layouts/ecommerce/products/product-page/components/ProductCell/index.tsx
+++ /dev/null
@@ -1,40 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// Material Dashboard 2 PRO React TS components
-import MDBox from "components/MDBox";
-import MDTypography from "components/MDTypography";
-import MDAvatar from "components/MDAvatar";
-
-// Declaring props types for ProductCell
-interface Props {
- image: string;
- name: string;
-}
-
-function ProductCell({ image, name }: Props): JSX.Element {
- return (
-
-
-
-
-
- {name}
-
-
- );
-}
-
-export default ProductCell;
diff --git a/src/layouts/ecommerce/products/product-page/components/ProductImages/index.tsx b/src/layouts/ecommerce/products/product-page/components/ProductImages/index.tsx
deleted file mode 100644
index cae0950..0000000
--- a/src/layouts/ecommerce/products/product-page/components/ProductImages/index.tsx
+++ /dev/null
@@ -1,143 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-import { useState } from "react";
-
-// react-images-viewer components
-import ImgsViewer from "react-images-viewer";
-
-// @mui material components
-import Stack from "@mui/material/Stack";
-
-// Material Dashboard 2 PRO React TS components
-import MDBox from "components/MDBox";
-
-// Images
-import image1 from "assets/images/products/product-details-1.jpg";
-import image2 from "assets/images/products/product-details-2.jpg";
-import image3 from "assets/images/products/product-details-3.jpg";
-import image4 from "assets/images/products/product-details-4.jpg";
-import image5 from "assets/images/products/product-details-5.jpg";
-
-function ProductImages(): JSX.Element {
- const [currentImage, setCurrentImage] = useState(image1);
- const [imgsViewer, setImgsViewer] = useState(false);
- const [imgsViewerCurrent, setImgsViewerCurrent] = useState(0);
-
- const handleSetCurrentImage = ({ currentTarget }: any) => {
- setCurrentImage(currentTarget.src);
- setImgsViewerCurrent(Number(currentTarget.id));
- };
-
- const openImgsViewer = () => setImgsViewer(true);
- const closeImgsViewer = () => setImgsViewer(false);
- const imgsViewerNext = () => setImgsViewerCurrent(imgsViewerCurrent + 1);
- const imgsViewerPrev = () => setImgsViewerCurrent(imgsViewerCurrent - 1);
-
- return (
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- );
-}
-
-export default ProductImages;
diff --git a/src/layouts/ecommerce/products/product-page/components/ProductInfo/index.tsx b/src/layouts/ecommerce/products/product-page/components/ProductInfo/index.tsx
deleted file mode 100644
index 0542000..0000000
--- a/src/layouts/ecommerce/products/product-page/components/ProductInfo/index.tsx
+++ /dev/null
@@ -1,128 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// @mui material components
-import Grid from "@mui/material/Grid";
-import Icon from "@mui/material/Icon";
-import Autocomplete from "@mui/material/Autocomplete";
-
-// Material Dashboard 2 PRO React TS components
-import MDBox from "components/MDBox";
-import MDTypography from "components/MDTypography";
-import MDButton from "components/MDButton";
-import MDBadge from "components/MDBadge";
-import MDInput from "components/MDInput";
-
-function ProductInfo(): JSX.Element {
- return (
-
-
-
- Minimal Bar Stool
-
-
-
- star
- star
- star
- star
- star_half
-
-
-
- Price
-
-
-
-
- $1,419
-
-
-
-
-
- Description
-
-
-
-
-
- The most beautiful curves of this swivel stool adds an elegant touch to any environment
-
-
-
-
- Memory swivel seat returns to original seat position
-
-
-
-
- Comfortable integrated layered chair seat cushion design
-
-
-
-
- Fully assembled! No assembly required
-
-
-
-
-
-
-
-
- Frame Material
-
-
- }
- />
-
-
-
-
- Color
-
-
- }
- />
-
-
-
-
- Quantity
-
-
-
-
-
-
-
-
-
- add to cart
-
-
-
-
- );
-}
-
-export default ProductInfo;
diff --git a/src/layouts/ecommerce/products/product-page/components/ReviewCell/index.tsx b/src/layouts/ecommerce/products/product-page/components/ReviewCell/index.tsx
deleted file mode 100644
index 540e3a2..0000000
--- a/src/layouts/ecommerce/products/product-page/components/ReviewCell/index.tsx
+++ /dev/null
@@ -1,103 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// @mui material components
-import Icon from "@mui/material/Icon";
-
-// Material Dashboard 2 PRO React TS components
-import MDTypography from "components/MDTypography";
-
-function ReviewCell({ rating }: { rating: number }): JSX.Element {
- const ratings: any = {
- 0.5: [
- star_outline,
- star_outline,
- star_outline,
- star_outline,
- star_outline,
- ],
- 1: [
- star,
- star_outline,
- star_outline,
- star_outline,
- star_outline,
- ],
- 1.5: [
- star,
- star_half,
- star_outline,
- star_outline,
- star_outline,
- ],
- 2: [
- star,
- star,
- star_outline,
- star_outline,
- star_outline,
- ],
- 2.5: [
- star,
- star,
- star_half,
- star_outline,
- star_outline,
- ],
- 3: [
- star,
- star,
- star,
- star_outline,
- star_outline,
- ],
- 3.5: [
- star,
- star,
- star,
- star_half,
- star_outline,
- ],
- 4: [
- star,
- star,
- star,
- star,
- star_outline,
- ],
- 4.5: [
- star,
- star,
- star,
- star,
- star_half,
- ],
- 5: [
- star,
- star,
- star,
- star,
- star,
- ],
- };
-
- return (
-
- {ratings[rating]}
-
- );
-}
-
-export default ReviewCell;
diff --git a/src/layouts/ecommerce/products/product-page/data/dataTableData.tsx b/src/layouts/ecommerce/products/product-page/data/dataTableData.tsx
deleted file mode 100644
index 20b4552..0000000
--- a/src/layouts/ecommerce/products/product-page/data/dataTableData.tsx
+++ /dev/null
@@ -1,88 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// Material Dashboard 2 PRO React TS components
-import MDBox from "components/MDBox";
-import MDProgress from "components/MDProgress";
-
-// ProductPage page components
-import ProductCell from "layouts/ecommerce/products/product-page/components/ProductCell";
-import ReviewCell from "layouts/ecommerce/products/product-page/components/ReviewCell";
-import DefaultCell from "layouts/ecommerce/products/product-page/components/DefaultCell";
-
-// Images
-import blackChair from "assets/images/ecommerce/black-chair.jpeg";
-import chairPink from "assets/images/ecommerce/chair-pink.jpeg";
-import chairSteel from "assets/images/ecommerce/chair-steel.jpeg";
-import chairWood from "assets/images/ecommerce/chair-wood.jpeg";
-
-const dataTableData = {
- columns: [
- { Header: "product", accessor: "product", width: "50%" },
- { Header: "price", accessor: "price", width: "10%" },
- { Header: "review", accessor: "review", align: "center" },
- { Header: "availability", accessor: "availability", align: "center", width: "40%" },
- { Header: "id", accessor: "id", align: "center" },
- ],
-
- rows: [
- {
- product: ,
- price: $89.53,
- review: ,
- availability: (
-
-
-
- ),
- id: 230019,
- },
- {
- product: ,
- price: $99.99,
- review: ,
- availability: (
-
-
-
- ),
- id: 87120,
- },
- {
- product: ,
- price: $129.00,
- review: ,
- availability: (
-
-
-
- ),
- id: 412301,
- },
- {
- product: ,
- price: $59.99,
- review: ,
- availability: (
-
-
-
- ),
- id: 001992,
- },
- ],
-};
-
-export default dataTableData;
diff --git a/src/layouts/ecommerce/products/product-page/index.tsx b/src/layouts/ecommerce/products/product-page/index.tsx
deleted file mode 100644
index 3f9a0e2..0000000
--- a/src/layouts/ecommerce/products/product-page/index.tsx
+++ /dev/null
@@ -1,80 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// @mui material components
-import Card from "@mui/material/Card";
-import Grid from "@mui/material/Grid";
-
-// Material Dashboard 2 PRO React TS components
-import MDBox from "components/MDBox";
-import MDTypography from "components/MDTypography";
-
-// Material Dashboard 2 PRO React TS examples components
-import DashboardLayout from "examples/LayoutContainers/DashboardLayout";
-import DashboardNavbar from "examples/Navbars/DashboardNavbar";
-import Footer from "examples/Footer";
-import DataTable from "examples/Tables/DataTable";
-
-// ProductPage page components
-import ProductImages from "layouts/ecommerce/products/product-page/components/ProductImages";
-import ProductInfo from "layouts/ecommerce/products/product-page/components/ProductInfo";
-
-// Data
-import dataTableData from "layouts/ecommerce/products/product-page/data/dataTableData";
-
-function ProductPage(): JSX.Element {
- return (
-
-
-
-
-
-
-
- Product Details
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Other Products
-
-
-
-
-
-
-
-
-
- );
-}
-
-export default ProductPage;
diff --git a/src/layouts/pages/account/billing/components/Bill/index.tsx b/src/layouts/pages/account/billing/components/Bill/index.tsx
deleted file mode 100644
index dcfba47..0000000
--- a/src/layouts/pages/account/billing/components/Bill/index.tsx
+++ /dev/null
@@ -1,107 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// @mui material components
-import Icon from "@mui/material/Icon";
-
-// Material Dashboard 2 PRO React TS components
-import MDBox from "components/MDBox";
-import MDTypography from "components/MDTypography";
-import MDButton from "components/MDButton";
-
-// Material Dashboard 2 PRO React context
-import { useMaterialUIController } from "context";
-
-// Declaring props types for Bill
-interface Props {
- name: string;
- company: string;
- email: string;
- vat: string;
- noGutter?: boolean;
-}
-
-function Bill({ name, company, email, vat, noGutter }: Props): JSX.Element {
- const [controller] = useMaterialUIController();
- const { darkMode } = controller;
-
- return (
-
-
-
-
- {name}
-
-
-
-
-
- delete delete
-
-
-
- edit edit
-
-
-
-
-
- Company Name:
-
- {company}
-
-
-
-
-
- Email Address:
-
- {email}
-
-
-
-
- VAT Number:
-
- {vat}
-
-
-
-
- );
-}
-
-// Declaring default props for Bill
-Bill.defaultProps = {
- noGutter: false,
-};
-
-export default Bill;
diff --git a/src/layouts/pages/account/billing/components/BillingInformation/index.tsx b/src/layouts/pages/account/billing/components/BillingInformation/index.tsx
deleted file mode 100644
index 93afe2d..0000000
--- a/src/layouts/pages/account/billing/components/BillingInformation/index.tsx
+++ /dev/null
@@ -1,61 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// @mui material components
-import Card from "@mui/material/Card";
-
-// Material Dashboard 2 PRO React TS components
-import MDBox from "components/MDBox";
-import MDTypography from "components/MDTypography";
-
-// Billing page components
-import Bill from "layouts/pages/account/billing/components/Bill";
-
-function BillingInformation(): JSX.Element {
- return (
-
-
-
- Billing Information
-
-
-
-
-
-
-
-
-
-
- );
-}
-
-export default BillingInformation;
diff --git a/src/layouts/pages/account/billing/components/Invoice/index.tsx b/src/layouts/pages/account/billing/components/Invoice/index.tsx
deleted file mode 100644
index b7260f0..0000000
--- a/src/layouts/pages/account/billing/components/Invoice/index.tsx
+++ /dev/null
@@ -1,70 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// @mui material components
-import Icon from "@mui/material/Icon";
-
-// Material Dashboard 2 PRO React TS components
-import MDBox from "components/MDBox";
-import MDTypography from "components/MDTypography";
-
-// Declaring props types for Invoice
-interface Props {
- date: string;
- id: string;
- price: string;
- noGutter?: boolean;
-}
-
-function Invoice({ date, id, price, noGutter }: Props): JSX.Element {
- return (
-
-
-
- {date}
-
-
- {id}
-
-
-
-
- {price}
-
-
- picture_as_pdf
-
- PDF
-
-
-
-
- );
-}
-
-// Declaring default props for Invoice
-Invoice.defaultProps = {
- noGutter: false,
-};
-
-export default Invoice;
diff --git a/src/layouts/pages/account/billing/components/Invoices/index.tsx b/src/layouts/pages/account/billing/components/Invoices/index.tsx
deleted file mode 100644
index c9e18bb..0000000
--- a/src/layouts/pages/account/billing/components/Invoices/index.tsx
+++ /dev/null
@@ -1,51 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// @mui material components
-import Card from "@mui/material/Card";
-
-// Material Dashboard 2 PRO React TS components
-import MDBox from "components/MDBox";
-import MDTypography from "components/MDTypography";
-import MDButton from "components/MDButton";
-
-// Billing page components
-import Invoice from "layouts/pages/account/billing/components/Invoice";
-
-function Invoices(): JSX.Element {
- return (
-
-
-
- Invoices
-
-
- view all
-
-
-
-
-
-
-
-
-
-
-
-
- );
-}
-
-export default Invoices;
diff --git a/src/layouts/pages/account/billing/components/PaymentMethod/index.tsx b/src/layouts/pages/account/billing/components/PaymentMethod/index.tsx
deleted file mode 100644
index d8f2a11..0000000
--- a/src/layouts/pages/account/billing/components/PaymentMethod/index.tsx
+++ /dev/null
@@ -1,107 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// @mui material components
-import Card from "@mui/material/Card";
-import Grid from "@mui/material/Grid";
-import Icon from "@mui/material/Icon";
-import Tooltip from "@mui/material/Tooltip";
-
-// Material Dashboard 2 PRO React TS components
-import MDBox from "components/MDBox";
-import MDTypography from "components/MDTypography";
-import MDButton from "components/MDButton";
-
-// Images
-import masterCardLogo from "assets/images/logos/mastercard.png";
-import visaLogo from "assets/images/logos/visa.png";
-
-// Material Dashboard 2 PRO React context
-import { useMaterialUIController } from "context";
-
-function PaymentMethod(): JSX.Element {
- const [controller] = useMaterialUIController();
- const { darkMode } = controller;
-
- return (
-
-
-
- Payment Method
-
-
- add
- add new card
-
-
-
-
-
-
- `${borderWidth[1]} solid ${borderColor}`,
- }}
- >
-
-
- **** **** **** 7852
-
-
-
-
- edit
-
-
-
-
-
-
-
- `${borderWidth[1]} solid ${borderColor}`,
- }}
- >
-
-
- **** **** **** 5248
-
-
-
-
- edit
-
-
-
-
-
-
-
-
- );
-}
-
-export default PaymentMethod;
diff --git a/src/layouts/pages/account/billing/components/Transaction/index.tsx b/src/layouts/pages/account/billing/components/Transaction/index.tsx
deleted file mode 100644
index 7f40795..0000000
--- a/src/layouts/pages/account/billing/components/Transaction/index.tsx
+++ /dev/null
@@ -1,62 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-import { ReactNode } from "react";
-
-// @mui material components
-import Icon from "@mui/material/Icon";
-
-// Material Dashboard 2 PRO React TS components
-import MDBox from "components/MDBox";
-import MDTypography from "components/MDTypography";
-import MDButton from "components/MDButton";
-
-// Declaring props types for Transaction
-interface Props {
- color: "primary" | "secondary" | "info" | "success" | "warning" | "error" | "light" | "dark";
- icon: ReactNode;
- name: string;
- description: string;
- value: string;
-}
-
-function Transaction({ color, icon, name, description, value }: Props): JSX.Element {
- return (
-
-
-
-
-
- {icon}
-
-
-
-
- {name}
-
-
- {description}
-
-
-
-
- {value}
-
-
-
- );
-}
-
-export default Transaction;
diff --git a/src/layouts/pages/account/billing/components/Transactions/index.tsx b/src/layouts/pages/account/billing/components/Transactions/index.tsx
deleted file mode 100644
index 3fc04c4..0000000
--- a/src/layouts/pages/account/billing/components/Transactions/index.tsx
+++ /dev/null
@@ -1,122 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// @mui material components
-import Card from "@mui/material/Card";
-// import Divider from "@mui/material/Divider";
-import Icon from "@mui/material/Icon";
-
-// Material Dashboard 2 PRO React TS components
-import MDBox from "components/MDBox";
-import MDTypography from "components/MDTypography";
-
-// Billing page components
-import Transaction from "layouts/pages/account/billing/components/Transaction";
-
-function Transactions(): JSX.Element {
- return (
-
-
-
- Your Transaction's
-
-
-
-
- date_range
-
-
-
- 23 - 30 March 2020
-
-
-
-
-
-
- newest
-
-
-
-
-
-
-
-
- yesterday
-
-
-
-
-
-
-
-
-
-
- );
-}
-
-export default Transactions;
diff --git a/src/layouts/pages/account/billing/index.tsx b/src/layouts/pages/account/billing/index.tsx
deleted file mode 100644
index f377c89..0000000
--- a/src/layouts/pages/account/billing/index.tsx
+++ /dev/null
@@ -1,85 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// @mui material components
-import Grid from "@mui/material/Grid";
-
-// Material Dashboard 2 PRO React TS components
-import MDBox from "components/MDBox";
-
-// Material Dashboard 2 PRO React TS components
-import MasterCard from "examples/Cards/MasterCard";
-import DefaultInfoCard from "examples/Cards/InfoCards/DefaultInfoCard";
-
-// Billing page components
-import BaseLayout from "layouts/pages/account/components/BaseLayout";
-import PaymentMethod from "layouts/pages/account/billing/components/PaymentMethod";
-import Invoices from "layouts/pages/account/billing/components/Invoices";
-import BillingInformation from "layouts/pages/account/billing/components/BillingInformation";
-import Transactions from "layouts/pages/account/billing/components/Transactions";
-
-function Billing(): JSX.Element {
- return (
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- );
-}
-
-export default Billing;
diff --git a/src/layouts/pages/account/invoice/index.tsx b/src/layouts/pages/account/invoice/index.tsx
deleted file mode 100644
index 93efb17..0000000
--- a/src/layouts/pages/account/invoice/index.tsx
+++ /dev/null
@@ -1,411 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// @mui material components
-import Grid from "@mui/material/Grid";
-import Card from "@mui/material/Card";
-import Table from "@mui/material/Table";
-import TableRow from "@mui/material/TableRow";
-import TableBody from "@mui/material/TableBody";
-import { Theme } from "@mui/material/styles";
-
-// Material Dashboard 2 PRO React TS components
-import MDBox from "components/MDBox";
-import MDTypography from "components/MDTypography";
-import MDButton from "components/MDButton";
-
-// Invoice page components
-import BaseLayout from "layouts/pages/account/components/BaseLayout";
-
-// Images
-import logoCT from "assets/images/logo-ct.png";
-import logoCTDark from "assets/images/logo-ct-dark.png";
-
-// Material Dashboard 2 PRO React context
-import { useMaterialUIController } from "context";
-
-function Invoice(): JSX.Element {
- const [controller] = useMaterialUIController();
- const { darkMode } = controller;
-
- const borderBottom = {
- borderBottom: ({ borders: { borderWidth }, palette: { light } }: Theme) =>
- `${borderWidth[1]} solid ${light.main}`,
- };
-
- return (
-
-
-
-
-
- {/* Invoice header */}
-
-
-
-
-
- St. Independence Embankment, 050105 Bucharest, Romania
-
-
-
- tel: +4 (074) 1090873
-
-
-
-
-
-
-
- Billed to: John Doe
-
-
-
-
- 4006 Locust View Drive
-
- San Francisco CA
-
- California
-
-
-
-
-
-
-
-
-
- Invoice no
-
-
- #0453119
-
-
-
-
-
-
- Invoice date:
-
-
-
-
- 06/03/2019
-
-
-
-
-
-
- Due date:
-
-
-
-
- 11/03/2019
-
-
-
-
-
-
-
-
- {/* Invoice table */}
-
-
-
-
-
-
-
- Item
-
-
-
-
- Qty
-
-
-
-
- Rate
-
-
-
-
- Amount
-
-
-
-
-
-
-
-
- Premium Support
-
-
-
-
- 1
-
-
-
-
- $ 9.00
-
-
-
-
- $ 9.00
-
-
-
-
-
-
- Material Dashboard 2 PRO
-
-
-
-
- 3
-
-
-
-
- $ 100.00
-
-
-
-
- $ 300.00
-
-
-
-
-
-
- Parts for service
-
-
-
-
- 1
-
-
-
-
- $ 89.00
-
-
-
-
- $ 89.00
-
-
-
-
-
-
-
- Total
-
-
- $ 698
-
-
-
-
-
-
-
- {/* Invoice footer */}
-
-
-
-
- Thank you!
-
-
-
- If you encounter any issues related to the invoice you can contact us at:
-
-
-
- email:{" "}
-
- support@creative-tim.com
-
-
-
-
-
- window.print()}>
- print
-
-
-
-
-
-
-
-
-
-
- );
-}
-
-export default Invoice;
diff --git a/src/layouts/pages/charts/data/bubbleChartData.ts b/src/layouts/pages/charts/data/bubbleChartData.ts
deleted file mode 100644
index 74849cc..0000000
--- a/src/layouts/pages/charts/data/bubbleChartData.ts
+++ /dev/null
@@ -1,52 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// types
-interface Types {
- labels: any;
- datasets: any;
-}
-
-const bubbleChartData: Types = {
- labels: ["0", "10", "20", "30", "40", "50", "60", "70", "80", "90"],
- datasets: [
- {
- label: "Dataset 1",
- color: "info",
- data: [
- { x: 100, y: 0, r: 10 },
- { x: 60, y: 30, r: 20 },
- { x: 40, y: 350, r: 10 },
- { x: 80, y: 80, r: 10 },
- { x: 20, y: 30, r: 15 },
- { x: 0, y: 100, r: 5 },
- ],
- },
- {
- label: "Dataset 2",
- color: "dark",
- data: [
- { x: 70, y: 40, r: 10 },
- { x: 30, y: 60, r: 20 },
- { x: 10, y: 300, r: 25 },
- { x: 60, y: 200, r: 10 },
- { x: 50, y: 300, r: 15 },
- { x: 20, y: 350, r: 5 },
- ],
- },
- ],
-};
-
-export default bubbleChartData;
diff --git a/src/layouts/pages/charts/data/defaultDoughnutChartData.ts b/src/layouts/pages/charts/data/defaultDoughnutChartData.ts
deleted file mode 100644
index 84d615c..0000000
--- a/src/layouts/pages/charts/data/defaultDoughnutChartData.ts
+++ /dev/null
@@ -1,31 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// types
-interface Types {
- labels: any;
- datasets: any;
-}
-
-const defaultDoughnutChartData: Types = {
- labels: ["Creative Tim", "Github", "Bootsnipp", "Dev.to", "Codeinwp"],
- datasets: {
- label: "Projects",
- backgroundColors: ["info", "dark", "error", "secondary", "primary"],
- data: [15, 20, 12, 60, 20],
- },
-};
-
-export default defaultDoughnutChartData;
diff --git a/src/layouts/pages/charts/data/defaultLineChartData.ts b/src/layouts/pages/charts/data/defaultLineChartData.ts
deleted file mode 100644
index 8b7a7d4..0000000
--- a/src/layouts/pages/charts/data/defaultLineChartData.ts
+++ /dev/null
@@ -1,43 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// types
-interface Types {
- labels: any;
- datasets: any;
-}
-
-const defaultLineChartData: Types = {
- labels: ["Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
- datasets: [
- {
- label: "Organic Search",
- color: "info",
- data: [50, 40, 300, 220, 500, 250, 400, 230, 500],
- },
- {
- label: "Referral",
- color: "dark",
- data: [30, 90, 40, 140, 290, 290, 340, 230, 400],
- },
- {
- label: "Direct",
- color: "primary",
- data: [40, 80, 70, 90, 30, 90, 140, 130, 200],
- },
- ],
-};
-
-export default defaultLineChartData;
diff --git a/src/layouts/pages/charts/data/gradientLineChartData.ts b/src/layouts/pages/charts/data/gradientLineChartData.ts
deleted file mode 100644
index 8f34265..0000000
--- a/src/layouts/pages/charts/data/gradientLineChartData.ts
+++ /dev/null
@@ -1,38 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// types
-interface Types {
- labels: any;
- datasets: any;
-}
-
-const defaultLineChartData: Types = {
- labels: ["Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
- datasets: [
- {
- label: "Mobile apps",
- color: "info",
- data: [50, 40, 300, 220, 500, 250, 400, 230, 500],
- },
- {
- label: "Websites",
- color: "dark",
- data: [30, 90, 40, 140, 290, 290, 340, 230, 400],
- },
- ],
-};
-
-export default defaultLineChartData;
diff --git a/src/layouts/pages/charts/data/horizontalBarChartData.ts b/src/layouts/pages/charts/data/horizontalBarChartData.ts
deleted file mode 100644
index ae1ef35..0000000
--- a/src/layouts/pages/charts/data/horizontalBarChartData.ts
+++ /dev/null
@@ -1,33 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// types
-interface Types {
- labels: any;
- datasets: any;
-}
-
-const horizontalBarChartData: Types = {
- labels: ["16-20", "21-25", "26-30", "31-36", "36-42", "42+"],
- datasets: [
- {
- label: "Sales by age",
- color: "dark",
- data: [15, 20, 12, 60, 20, 15],
- },
- ],
-};
-
-export default horizontalBarChartData;
diff --git a/src/layouts/pages/charts/data/mixedChartData.ts b/src/layouts/pages/charts/data/mixedChartData.ts
deleted file mode 100644
index a8dd739..0000000
--- a/src/layouts/pages/charts/data/mixedChartData.ts
+++ /dev/null
@@ -1,40 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// types
-interface Types {
- labels: any;
- datasets: any;
-}
-
-const mixedChartData: Types = {
- labels: ["Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
- datasets: [
- {
- chartType: "thin-bar",
- label: "Organic Search",
- color: "dark",
- data: [50, 40, 300, 220, 500, 250, 400, 230, 500],
- },
- {
- chartType: "gradient-line",
- label: "Referral",
- color: "info",
- data: [30, 90, 40, 140, 290, 290, 340, 230, 400],
- },
- ],
-};
-
-export default mixedChartData;
diff --git a/src/layouts/pages/charts/data/pieChartData.ts b/src/layouts/pages/charts/data/pieChartData.ts
deleted file mode 100644
index 0b0e0e9..0000000
--- a/src/layouts/pages/charts/data/pieChartData.ts
+++ /dev/null
@@ -1,31 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// types
-interface Types {
- labels: any;
- datasets: any;
-}
-
-const pieChartData: Types = {
- labels: ["Facebook", "Direct", "Organic", "Referral"],
- datasets: {
- label: "Projects",
- backgroundColors: ["info", "primary", "dark", "secondary", "primary"],
- data: [15, 20, 12, 60],
- },
-};
-
-export default pieChartData;
diff --git a/src/layouts/pages/charts/data/polarChartData.ts b/src/layouts/pages/charts/data/polarChartData.ts
deleted file mode 100644
index 6228535..0000000
--- a/src/layouts/pages/charts/data/polarChartData.ts
+++ /dev/null
@@ -1,31 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// types
-interface Types {
- labels: any;
- datasets: any;
-}
-
-const polarChartData: Types = {
- labels: ["Red", "Green", "Yellow", "Grey", "Blue"],
- datasets: {
- label: "My First Dataset",
- data: [11, 16, 7, 3, 14],
- backgroundColors: ["info", "primary", "dark", "secondary", "success"],
- },
-};
-
-export default polarChartData;
diff --git a/src/layouts/pages/charts/data/radarChartData.ts b/src/layouts/pages/charts/data/radarChartData.ts
deleted file mode 100644
index 0b01d7f..0000000
--- a/src/layouts/pages/charts/data/radarChartData.ts
+++ /dev/null
@@ -1,39 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// types
-interface Types {
- labels: any;
- datasets: any;
-}
-
-const radarChartData: Types = {
- labels: ["English", "Maths", "Physics", "Chemistry", "Biology", "History"],
- datasets: [
- {
- label: "Student A",
- color: "dark",
- data: [65, 75, 70, 80, 60, 80],
- borderDash: [5, 5],
- },
- {
- label: "Student B",
- color: "info",
- data: [54, 65, 60, 70, 70, 75],
- },
- ],
-};
-
-export default radarChartData;
diff --git a/src/layouts/pages/charts/data/verticalBarChartData.ts b/src/layouts/pages/charts/data/verticalBarChartData.ts
deleted file mode 100644
index 2eb519e..0000000
--- a/src/layouts/pages/charts/data/verticalBarChartData.ts
+++ /dev/null
@@ -1,33 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// types
-interface Types {
- labels: any;
- datasets: any;
-}
-
-const verticalBarChartData: Types = {
- labels: ["16-20", "21-25", "26-30", "31-36", "36-42", "42+"],
- datasets: [
- {
- label: "Sales by age",
- color: "dark",
- data: [15, 20, 12, 60, 20, 15],
- },
- ],
-};
-
-export default verticalBarChartData;
diff --git a/src/layouts/pages/charts/index.tsx b/src/layouts/pages/charts/index.tsx
deleted file mode 100644
index 59d056a..0000000
--- a/src/layouts/pages/charts/index.tsx
+++ /dev/null
@@ -1,173 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// @mui material components
-import Grid from "@mui/material/Grid";
-
-// Material Dashboard 2 PRO React TS components
-import MDBox from "components/MDBox";
-import MDTypography from "components/MDTypography";
-
-// Material Dashboard 2 PRO React TS examples components
-import DashboardLayout from "examples/LayoutContainers/DashboardLayout";
-import DashboardNavbar from "examples/Navbars/DashboardNavbar";
-import Footer from "examples/Footer";
-import DefaultLineChart from "examples/Charts/LineCharts/DefaultLineChart";
-import GradientLineChart from "examples/Charts/LineCharts/GradientLineChart";
-import VerticalBarChart from "examples/Charts/BarCharts/VerticalBarChart";
-import HorizontalBarChart from "examples/Charts/BarCharts/HorizontalBarChart";
-import MixedChart from "examples/Charts/MixedChart";
-import BubbleChart from "examples/Charts/BubbleChart";
-import DefaultDoughnutChart from "examples/Charts/DoughnutCharts/DefaultDoughnutChart";
-import PieChart from "examples/Charts/PieChart";
-import RadarChart from "examples/Charts/RadarChart";
-import PolarChart from "examples/Charts/PolarChart";
-
-// Data
-import defaultLineChartData from "layouts/pages/charts/data/defaultLineChartData";
-import gradientLineChartData from "layouts/pages/charts/data/gradientLineChartData";
-import verticalBarChartData from "layouts/pages/charts/data/verticalBarChartData";
-import horizontalBarChartData from "layouts/pages/charts/data/horizontalBarChartData";
-import mixedChartData from "layouts/pages/charts/data/mixedChartData";
-import bubbleChartData from "layouts/pages/charts/data/bubbleChartData";
-import defaultDoughnutChartData from "layouts/pages/charts/data/defaultDoughnutChartData";
-import pieChartData from "layouts/pages/charts/data/pieChartData";
-import radarChartData from "layouts/pages/charts/data/radarChartData";
-import polarChartData from "layouts/pages/charts/data/polarChartData";
-
-function Charts(): JSX.Element {
- return (
-
-
-
-
-
-
- Charts
-
- Charts on this page use Chart.js - Simple yet flexible JavaScript charting for
- designers & developers.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- );
-}
-
-export default Charts;
diff --git a/src/layouts/pages/notifications/index.tsx b/src/layouts/pages/notifications/index.tsx
deleted file mode 100644
index ac64c51..0000000
--- a/src/layouts/pages/notifications/index.tsx
+++ /dev/null
@@ -1,197 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-import { useState } from "react";
-
-// @mui material components
-import Grid from "@mui/material/Grid";
-import Card from "@mui/material/Card";
-
-// Material Dashboard 2 PRO React TS components
-import MDBox from "components/MDBox";
-import MDTypography from "components/MDTypography";
-import MDAlert from "components/MDAlert";
-import MDButton from "components/MDButton";
-import MDSnackbar from "components/MDSnackbar";
-
-// Material Dashboard 2 PRO React TS examples components
-import DashboardLayout from "examples/LayoutContainers/DashboardLayout";
-import DashboardNavbar from "examples/Navbars/DashboardNavbar";
-import Footer from "examples/Footer";
-
-function Notifications(): JSX.Element {
- const [successSB, setSuccessSB] = useState(false);
- const [infoSB, setInfoSB] = useState(false);
- const [warningSB, setWarningSB] = useState(false);
- const [errorSB, setErrorSB] = useState(false);
-
- const openSuccessSB = () => setSuccessSB(true);
- const closeSuccessSB = () => setSuccessSB(false);
- const openInfoSB = () => setInfoSB(true);
- const closeInfoSB = () => setInfoSB(false);
- const openWarningSB = () => setWarningSB(true);
- const closeWarningSB = () => setWarningSB(false);
- const openErrorSB = () => setErrorSB(true);
- const closeErrorSB = () => setErrorSB(false);
-
- const alertContent = (name: string) => (
-
- A simple {name} alert with{" "}
-
- an example link
-
- . Give it a click if you like.
-
- );
-
- const renderSuccessSB = (
-
- );
-
- const renderInfoSB = (
-
- );
-
- const renderWarningSB = (
-
- );
-
- const renderErrorSB = (
-
- );
-
- return (
-
-
-
-
-
-
-
- Alerts
-
-
-
- {alertContent("primary")}
-
-
- {alertContent("secondary")}
-
-
- {alertContent("success")}
-
-
- {alertContent("error")}
-
-
- {alertContent("warning")}
-
-
- {alertContent("info")}
-
-
- {alertContent("light")}
-
-
- {alertContent("dark")}
-
-
-
-
-
-
-
-
- Notifications
-
- Notifications on this page use Toasts from Bootstrap. Read more details here.
-
-
-
-
-
-
- success notification
-
- {renderSuccessSB}
-
-
-
- info notification
-
- {renderInfoSB}
-
-
-
- warning notification
-
- {renderWarningSB}
-
-
-
- error notification
-
- {renderErrorSB}
-
-
-
-
-
-
-
-
-
- );
-}
-
-export default Notifications;
diff --git a/src/layouts/pages/pricing-page/components/Faq/index.tsx b/src/layouts/pages/pricing-page/components/Faq/index.tsx
deleted file mode 100644
index 1021e50..0000000
--- a/src/layouts/pages/pricing-page/components/Faq/index.tsx
+++ /dev/null
@@ -1,119 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-import { useState } from "react";
-
-// @mui material components
-import Grid from "@mui/material/Grid";
-// Material Dashboard 2 PRO React TS components
-import MDBox from "components/MDBox";
-import MDTypography from "components/MDTypography";
-
-// Pricing page components
-import FaqCollapse from "layouts/pages/pricing-page/components/FaqCollapse";
-
-function Faq(): JSX.Element {
- const [collapse, setCollapse] = useState(false);
-
- return (
-
-
-
-
- Frequently Asked Questions
-
-
-
- A lot of people don't appreciate the moment until it’s passed. I'm not
- trying my hardest, and I'm not trying to do
-
-
-
-
- (collapse === 1 ? setCollapse(false) : setCollapse(1))}
- >
- We’re not always in the position that we want to be at. We’re constantly growing. We’re
- constantly making mistakes. We’re constantly trying to express ourselves and actualize
- our dreams. If you have the opportunity to play this game of life you need to appreciate
- every moment. A lot of people don’t appreciate the moment until it’s passed.
-
- (collapse === 2 ? setCollapse(false) : setCollapse(2))}
- >
- It really matters and then like it really doesn’t matter. What matters is the people who
- are sparked by it. And the people who are like offended by it, it doesn’t matter.
- Because it's about motivating the doers. Because I’m here to follow my dreams and
- inspire other people to follow their dreams, too. We’re not always in the position that
- we want to be at. We’re constantly growing. We’re constantly making mistakes. We’re
- constantly trying to express ourselves and actualize our dreams. If you have the
- opportunity to play this game of life you need to appreciate every moment. A lot of
- people don’t appreciate the moment until it’s passed.
-
- (collapse === 3 ? setCollapse(false) : setCollapse(3))}
- >
- The time is now for it to be okay to be great. People in this world shun people for
- being great. For being a bright color. For standing out. But the time is now to be okay
- to be the greatest you. Would you believe in what you believe in, if you were the only
- one who believed it? If everything I did failed - which it doesn't, it actually
- succeeds - just the fact that I'm willing to fail is an inspiration. People are so
- scared to lose that they don't even try. Like, one thing people can't say is
- that I'm not trying, and I'm not trying my hardest, and I'm not trying to
- do the best way I know how.
-
- (collapse === 4 ? setCollapse(false) : setCollapse(4))}
- >
- I always felt like I could do anything. That’s the main thing people are controlled by!
- Thoughts- their perception of themselves! They're slowed down by their perception
- of themselves. If you're taught you can’t do anything, you won’t do anything. I was
- taught I could do everything.
-
-
- If everything I did failed - which it doesn't, it actually succeeds - just the fact
- that I'm willing to fail is an inspiration. People are so scared to lose that they
- don't even try. Like, one thing people can't say is that I'm not trying,
- and I'm not trying my hardest, and I'm not trying to do the best way I know
- how.
-
- (collapse === 5 ? setCollapse(false) : setCollapse(5))}
- >
- There’s nothing I really wanted to do in life that I wasn’t able to get good at. That’s
- my skill. I’m not really specifically talented at anything except for the ability to
- learn. That’s what I do. That’s what I’m here for. Don’t be afraid to be wrong because
- you can’t learn anything from a compliment. I always felt like I could do anything.
- That’s the main thing people are controlled by! Thoughts- their perception of
- themselves! They're slowed down by their perception of themselves. If you're
- taught you can’t do anything, you won’t do anything. I was taught I could do everything.
-
-
-
-
- );
-}
-
-export default Faq;
diff --git a/src/layouts/pages/pricing-page/components/FaqCollapse/index.tsx b/src/layouts/pages/pricing-page/components/FaqCollapse/index.tsx
deleted file mode 100644
index c676cc5..0000000
--- a/src/layouts/pages/pricing-page/components/FaqCollapse/index.tsx
+++ /dev/null
@@ -1,71 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-import { ReactNode } from "react";
-
-// @mui material components
-import Icon from "@mui/material/Icon";
-import Collapse from "@mui/material/Collapse";
-
-// Material Dashboard 2 PRO React TS components
-import MDBox from "components/MDBox";
-import MDTypography from "components/MDTypography";
-
-// Material Dashboard 2 PRO React TS components
-import borders from "assets/theme/base/borders";
-
-// Declaring props types for FaqCollapse
-interface Props {
- title: string;
- open: boolean;
- children: ReactNode;
- [key: string]: any;
-}
-
-function FaqCollapse({ title, open, children, ...rest }: Props): JSX.Element {
- const { borderWidth, borderColor } = borders;
-
- return (
-
-
-
- {title}
-
-
-
- {open ? "remove" : "add"}
-
-
-
-
-
-
- {children}
-
-
-
-
- );
-}
-
-export default FaqCollapse;
diff --git a/src/layouts/pages/pricing-page/components/Footer/index.tsx b/src/layouts/pages/pricing-page/components/Footer/index.tsx
deleted file mode 100644
index e055b6b..0000000
--- a/src/layouts/pages/pricing-page/components/Footer/index.tsx
+++ /dev/null
@@ -1,133 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// @mui material components
-import Grid from "@mui/material/Grid";
-
-// @mui icons
-import FacebookIcon from "@mui/icons-material/Facebook";
-import TwitterIcon from "@mui/icons-material/Twitter";
-import InstagramIcon from "@mui/icons-material/Instagram";
-import PinterestIcon from "@mui/icons-material/Pinterest";
-import LinkedInIcon from "@mui/icons-material/LinkedIn";
-
-// Material Dashboard 2 PRO React TS components
-import MDBox from "components/MDBox";
-import MDTypography from "components/MDTypography";
-
-function Footer(): JSX.Element {
- return (
-
-
-
-
-
-
- Company
-
-
-
-
- About Us
-
-
-
-
- Team
-
-
-
-
- Product
-
-
-
-
- Blog
-
-
-
-
- Pricing
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Copyright © 2021 Material by Creative Tim.
-
-
-
-
- );
-}
-
-export default Footer;
diff --git a/src/layouts/pages/pricing-page/components/Header/index.tsx b/src/layouts/pages/pricing-page/components/Header/index.tsx
deleted file mode 100644
index 05c1ceb..0000000
--- a/src/layouts/pages/pricing-page/components/Header/index.tsx
+++ /dev/null
@@ -1,127 +0,0 @@
-/* eslint-disable no-unused-vars */
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-import { ReactNode } from "react";
-
-// @mui material components
-import Grid from "@mui/material/Grid";
-import Card from "@mui/material/Card";
-import AppBar from "@mui/material/AppBar";
-import Tabs from "@mui/material/Tabs";
-import Tab from "@mui/material/Tab";
-
-// Material Dashboard 2 PRO React TS components
-import MDBox from "components/MDBox";
-import MDTypography from "components/MDTypography";
-
-// Material Dashboard 2 PRO React TS examples components
-import DefaultNavbar from "examples/Navbars/DefaultNavbar";
-
-// Material Dashboard 2 PRO React page layout routes
-import pageRoutes from "page.routes";
-
-// Images
-import bgImage from "assets/images/bg-pricing.jpg";
-
-// Declaring props types for Header
-interface Props {
- tabValue: number;
- tabHandler: (...arg: any) => void;
- children: ReactNode;
-}
-
-function Header({ tabValue, tabHandler, children }: Props): JSX.Element {
- return (
- <>
-
-
- `${linearGradient(rgba(black.main, 0.25), rgba(black.main, 0.25))}, url(${bgImage})`,
- backgroundSize: "cover",
- backgroundPosition: "center",
- }}
- >
-
-
-
-
- Pick the best plan for you
-
-
-
-
- You have Free Unlimited Updates and Premium Support on each package.
-
-
-
-
-
-
-
-
-
-
-
-
- Monthly
-
- }
- />
-
- Annual
-
- }
- />
-
-
-
- {children}
-
-
-
- >
- );
-}
-
-export default Header;
diff --git a/src/layouts/pages/pricing-page/components/PricingCards/index.tsx b/src/layouts/pages/pricing-page/components/PricingCards/index.tsx
deleted file mode 100644
index 0b168fb..0000000
--- a/src/layouts/pages/pricing-page/components/PricingCards/index.tsx
+++ /dev/null
@@ -1,105 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// @mui material components
-import Grid from "@mui/material/Grid";
-
-// Material Dashboard 2 PRO React TS components
-import MDBox from "components/MDBox";
-
-// Material Dashboard 2 PRO React TS examples components
-import DefaultPricingCard from "examples/Cards/PricingCards/DefaultPricingCard";
-
-// Material Dashboard 2 PRO React context
-import { useMaterialUIController } from "context";
-
-function PricingCards({ prices }: { prices: string[] }): JSX.Element {
- const [controller] = useMaterialUIController();
- const { darkMode } = controller;
- const [starter, premium, enterprise] = prices;
- return (
-
-
-
-
-
-
-
-
-
-
-
-
-
- );
-}
-
-export default PricingCards;
diff --git a/src/layouts/pages/pricing-page/components/TrustedBrands/index.tsx b/src/layouts/pages/pricing-page/components/TrustedBrands/index.tsx
deleted file mode 100644
index fd6a557..0000000
--- a/src/layouts/pages/pricing-page/components/TrustedBrands/index.tsx
+++ /dev/null
@@ -1,107 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// @mui material components
-import Grid from "@mui/material/Grid";
-
-// Material Dashboard 2 PRO React TS components
-import MDBox from "components/MDBox";
-import MDTypography from "components/MDTypography";
-
-// Images
-import coinbase from "assets/images/logos/gray-logos/logo-coinbase.svg";
-import nasa from "assets/images/logos/gray-logos/logo-nasa.svg";
-import netflix from "assets/images/logos/gray-logos/logo-netflix.svg";
-import pinterest from "assets/images/logos/gray-logos/logo-pinterest.svg";
-import spotify from "assets/images/logos/gray-logos/logo-spotify.svg";
-import vodafone from "assets/images/logos/gray-logos/logo-vodafone.svg";
-
-function PricingCards(): JSX.Element {
- return (
-
-
-
- More than 50+ brands trust Material
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- );
-}
-
-export default PricingCards;
diff --git a/src/layouts/pages/pricing-page/index.tsx b/src/layouts/pages/pricing-page/index.tsx
deleted file mode 100644
index 3f3a479..0000000
--- a/src/layouts/pages/pricing-page/index.tsx
+++ /dev/null
@@ -1,59 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-import { useState } from "react";
-
-// @mui material components
-import Container from "@mui/material/Container";
-
-// Material Dashboard 2 PRO React TS examples components
-import PageLayout from "examples/LayoutContainers/PageLayout";
-
-// Pricing page components
-import Header from "layouts/pages/pricing-page/components/Header";
-import Footer from "layouts/pages/pricing-page/components/Footer";
-import PricingCards from "layouts/pages/pricing-page/components/PricingCards";
-import TrustedBrands from "layouts/pages/pricing-page/components/TrustedBrands";
-import Faq from "layouts/pages/pricing-page/components/Faq";
-
-function PricingPage(): JSX.Element {
- const [tabValue, setTabValue] = useState(0);
- const [prices, setPrices] = useState(["59", "89", "99"]);
-
- const handleSetTabValue = (event: any, newValue: any) => {
- setTabValue(newValue);
-
- if (event.currentTarget.id === "annual") {
- setPrices(["119", "159", "399"]);
- } else {
- setPrices(["59", "89", "99"]);
- }
- };
-
- return (
-
-
-
-
- );
-}
-
-export default PricingPage;
diff --git a/src/layouts/pages/profile/all-projects/index.tsx b/src/layouts/pages/profile/all-projects/index.tsx
deleted file mode 100644
index f547349..0000000
--- a/src/layouts/pages/profile/all-projects/index.tsx
+++ /dev/null
@@ -1,212 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-import { useState } from "react";
-
-// @mui material components
-import Grid from "@mui/material/Grid";
-import Menu from "@mui/material/Menu";
-import MenuItem from "@mui/material/MenuItem";
-import Icon from "@mui/material/Icon";
-
-// Material Dashboard 2 PRO React TS components
-import MDBox from "components/MDBox";
-import MDTypography from "components/MDTypography";
-import MDButton from "components/MDButton";
-
-// Material Dashboard 2 PRO React TS examples components
-import DashboardLayout from "examples/LayoutContainers/DashboardLayout";
-import DashboardNavbar from "examples/Navbars/DashboardNavbar";
-import Footer from "examples/Footer";
-import ComplexProjectCard from "examples/Cards/ProjectCards/ComplexProjectCard";
-
-// Project page components
-import Header from "layouts/pages/profile/components/Header";
-
-// Images
-import team1 from "assets/images/team-1.jpg";
-import team2 from "assets/images/team-2.jpg";
-import team3 from "assets/images/team-3.jpg";
-import team4 from "assets/images/team-4.jpg";
-import team5 from "assets/images/team-5.jpg";
-import logoSlack from "assets/images/small-logos/logo-slack.svg";
-import logoSpotify from "assets/images/small-logos/logo-spotify.svg";
-import logoXD from "assets/images/small-logos/logo-xd.svg";
-import logoAsana from "assets/images/small-logos/logo-asana.svg";
-import logoInvision from "assets/images/small-logos/logo-invision.svg";
-import logoAtlassian from "assets/images/small-logos/logo-atlassian.svg";
-
-function AllProjects(): JSX.Element {
- // ComplexProjectCard dropdown menu state
- const [slackBotMenu, setSlackBotMenu] = useState(null);
- const [premiumSupportMenu, setPremiumSupportMenu] = useState(null);
- const [designToolsMenu, setDesignToolsMenu] = useState(null);
- const [lookingGreatMenu, setLookingGreatMenu] = useState(null);
- const [developerFirstMenu, setDeveloperFirstMenu] = useState(null);
-
- // TeamProfileCard dropdown menu handlers
- const openSlackBotMenu = (event: any) => setSlackBotMenu(event.currentTarget);
- const closeSlackBotMenu = () => setSlackBotMenu(null);
- const openPremiumSupportMenu = (event: any) => setPremiumSupportMenu(event.currentTarget);
- const closePremiumSupportMenu = () => setPremiumSupportMenu(null);
- const openDesignToolsMenu = (event: any) => setDesignToolsMenu(event.currentTarget);
- const closeDesignToolsMenu = () => setDesignToolsMenu(null);
- const openLookingGreatMenu = (event: any) => setLookingGreatMenu(event.currentTarget);
- const closeLookingGreatMenu = () => setLookingGreatMenu(null);
- const openDeveloperFirstMenu = (event: any) => setDeveloperFirstMenu(event.currentTarget);
- const closeDeveloperFirstMenu = () => setDeveloperFirstMenu(null);
-
- // Dropdown menu template for the ComplexProjectCard
- const renderMenu = (state: any, close: any) => (
-
- );
-
- return (
-
-
-
-
-
-
-
-
-
- Some of Our Awesome Projects
-
-
-
- This is the paragraph where you can write more details about your projects. Keep you
- user engaged by providing meaningful information.
-
-
-
-
-
- add Add New
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- );
-}
-
-export default AllProjects;
diff --git a/src/layouts/pages/projects/timeline/data/timelineData.ts b/src/layouts/pages/projects/timeline/data/timelineData.ts
deleted file mode 100644
index 24c522d..0000000
--- a/src/layouts/pages/projects/timeline/data/timelineData.ts
+++ /dev/null
@@ -1,97 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TSUI Dashboard PRO React - v3.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/soft-ui-dashboard-pro-react
-* Copyright 2021 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// types
-interface Types {
- [key: string]: any;
-}
-
-const timelineData: Types[] = [
- {
- color: "success",
- icon: "notifications",
- title: "$2400, Design changes",
- dateTime: "22 DEC 7:20 PM",
- description:
- "People care about how you see the world, how you think, what motivates you, what you’re struggling with or afraid of.",
- },
- {
- color: "error",
- icon: "inventory_2",
- title: "New order #1832412",
- dateTime: "21 DEC 11 PM",
- description:
- "People care about how you see the world, how you think, what motivates you, what you’re struggling with or afraid of.",
- },
- {
- color: "info",
- icon: "shopping_cart",
- title: "Server payments for April",
- dateTime: "21 DEC 9:34 PM",
- description:
- "People care about how you see the world, how you think, what motivates you, what you’re struggling with or afraid of.",
- },
- {
- color: "warning",
- icon: "payment",
- title: "New card added for order #4395133",
- dateTime: "20 DEC 2:20 AM",
- description:
- "People care about how you see the world, how you think, what motivates you, what you’re struggling with or afraid of.",
- },
- {
- color: "primary",
- icon: "vpn_key",
- title: "Unlock packages for development",
- dateTime: "18 DEC 4:54 AM",
- description:
- "People care about how you see the world, how you think, what motivates you, what you’re struggling with or afraid of.",
- },
- {
- color: "success",
- icon: "inbox",
- title: "New message unread",
- dateTime: "16 DEC",
- description:
- "People care about how you see the world, how you think, what motivates you, what you’re struggling with or afraid of.",
- },
- {
- color: "info",
- icon: "campaign",
- title: "Notifications unread",
- dateTime: "15 DEC",
- description:
- "People care about how you see the world, how you think, what motivates you, what you’re struggling with or afraid of.",
- },
- {
- color: "warning",
- icon: "archive",
- title: "New request",
- dateTime: "14 DEC",
- description:
- "People care about how you see the world, how you think, what motivates you, what you’re struggling with or afraid of.",
- },
- {
- color: "secondary",
- icon: "sports_esports",
- title: "Controller issues",
- dateTime: "13 DEC",
- description:
- "People care about how you see the world, how you think, what motivates you, what you’re struggling with or afraid of.",
- lastItem: true,
- },
-];
-
-export default timelineData;
diff --git a/src/layouts/pages/projects/timeline/index.tsx b/src/layouts/pages/projects/timeline/index.tsx
deleted file mode 100644
index 897a15c..0000000
--- a/src/layouts/pages/projects/timeline/index.tsx
+++ /dev/null
@@ -1,67 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TSUI Dashboard PRO React - v3.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/soft-ui-dashboard-pro-react
-* Copyright 2021 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// @mui material components
-import Grid from "@mui/material/Grid";
-
-// Material Dashboard 2 PRO React TSUI Dashboard PRO React components
-import MDBox from "components/MDBox";
-
-// Material Dashboard 2 PRO React TSUI Dashboard PRO React example components
-import DashboardLayout from "examples/LayoutContainers/DashboardLayout";
-import DashboardNavbar from "examples/Navbars/DashboardNavbar";
-import Footer from "examples/Footer";
-import TimelineList from "examples/Timeline/TimelineList";
-import TimelineItem from "examples/Timeline/TimelineItem";
-
-// Data
-import timelineData from "layouts/pages/projects/timeline/data/timelineData";
-
-function Timeline(): JSX.Element {
- const renderTimelineItems = timelineData.map(
- ({ color, icon, title, dateTime, description, lastItem }) => (
-
- )
- );
-
- return (
-
-
-
-
-
- {renderTimelineItems}
-
-
-
- {renderTimelineItems}
-
-
-
-
-
-
- );
-}
-
-export default Timeline;
diff --git a/src/layouts/pages/rtl/components/Chart/configs/index.ts b/src/layouts/pages/rtl/components/Chart/configs/index.ts
deleted file mode 100644
index bb9c2f7..0000000
--- a/src/layouts/pages/rtl/components/Chart/configs/index.ts
+++ /dev/null
@@ -1,62 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-function configs(labels: any, datasets: any) {
- return {
- data: {
- labels,
- datasets: [...datasets],
- },
- options: {
- responsive: true,
- maintainAspectRatio: false,
- plugins: {
- legend: {
- display: false,
- },
- },
- interaction: {
- intersect: false,
- mode: "index",
- },
- scales: {
- y: {
- grid: {
- drawBorder: false,
- display: false,
- drawOnChartArea: false,
- drawTicks: false,
- },
- ticks: {
- display: false,
- },
- },
- x: {
- grid: {
- drawBorder: false,
- display: false,
- drawOnChartArea: false,
- drawTicks: false,
- },
- ticks: {
- display: false,
- },
- },
- },
- },
- };
-}
-
-export default configs;
diff --git a/src/layouts/pages/rtl/components/Chart/index.tsx b/src/layouts/pages/rtl/components/Chart/index.tsx
deleted file mode 100644
index fb7e195..0000000
--- a/src/layouts/pages/rtl/components/Chart/index.tsx
+++ /dev/null
@@ -1,104 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-import { useRef, useEffect, useState, useMemo, ReactNode } from "react";
-
-// react-chartjs-2 components
-import { Line } from "react-chartjs-2";
-
-// @mui material components
-import Card from "@mui/material/Card";
-
-// Material Dashboard 2 PRO React TS components
-import MDBox from "components/MDBox";
-import MDTypography from "components/MDTypography";
-
-// Material Dashboard 2 PRO React TS Helper Functions
-import gradientChartLine from "assets/theme/functions/gradientChartLine";
-
-// Chart configurations
-import configs from "layouts/pages/widgets/components/Chart/configs";
-
-// Material Dashboard 2 PRO React TS Base Styles
-import colors from "assets/theme/base/colors";
-
-// Declaring props types for Chart
-interface Props {
- title: string;
- count: number | ReactNode;
- percentage: {
- color: "primary" | "secondary" | "info" | "success" | "warning" | "error" | "dark";
- label: string | ReactNode;
- };
- chart: {
- labels: string[];
- datasets: {
- label: string;
- color: "primary" | "secondary" | "info" | "success" | "warning" | "error" | "light" | "dark";
- data: number[];
- }[];
- };
-}
-
-function Chart({ title, count, percentage, chart }: Props): JSX.Element {
- const chartRef = useRef(null);
- const [chartData, setChartData] = useState({});
- const { data, options }: any = chartData;
-
- useEffect(() => {
- const chartDatasets = chart.datasets.map((dataset) => ({
- ...dataset,
- tension: 0.4,
- pointRadius: 0,
- borderWidth: 2,
- borderColor: colors[dataset.color].main,
- fill: true,
- maxBarThickness: 6,
- backgroundColor: gradientChartLine(
- chartRef.current.children[0],
- colors[dataset.color].main,
- 0.02
- ),
- }));
-
- setChartData(configs(chart.labels, chartDatasets));
- }, [chart]);
-
- return (
-
-
-
- {title}
-
-
- {count}
-
- {percentage.label}
-
-
-
- {useMemo(
- () => (
-
-
-
- ),
- [chartData]
- )}
-
- );
-}
-
-export default Chart;
diff --git a/src/layouts/pages/rtl/components/FullBody/index.tsx b/src/layouts/pages/rtl/components/FullBody/index.tsx
deleted file mode 100644
index fe74755..0000000
--- a/src/layouts/pages/rtl/components/FullBody/index.tsx
+++ /dev/null
@@ -1,42 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// @mui material components
-import Card from "@mui/material/Card";
-
-// Material Dashboard 2 PRO React TS components
-import MDBox from "components/MDBox";
-import MDTypography from "components/MDTypography";
-import MDBadge from "components/MDBadge";
-
-function FullBody(): JSX.Element {
- return (
-
-
-
- جسم كامل
-
-
-
-
-
- ما يهم هو الأشخاص الذين أوقدوه. والناس الذين يشبهونهم مستاءون منه.
-
-
-
- );
-}
-
-export default FullBody;
diff --git a/src/layouts/pages/rtl/components/MediaPlayer/index.tsx b/src/layouts/pages/rtl/components/MediaPlayer/index.tsx
deleted file mode 100644
index fa03679..0000000
--- a/src/layouts/pages/rtl/components/MediaPlayer/index.tsx
+++ /dev/null
@@ -1,92 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// @mui material components
-import Card from "@mui/material/Card";
-import Icon from "@mui/material/Icon";
-import { Theme } from "@mui/material/styles";
-
-// Material Dashboard 2 PRO React TS components
-import MDBox from "components/MDBox";
-import MDTypography from "components/MDTypography";
-import MDButton from "components/MDButton";
-
-// Images
-import bgImage from "assets/images/bg-player.jpeg";
-
-function MediaPlayer(): JSX.Element {
- const mediaPlayerButtonStyles = ({ functions: { pxToRem } }: Theme) => ({
- width: pxToRem(46),
- height: pxToRem(46),
- minWidth: pxToRem(46),
- minHeight: pxToRem(46),
- mr: 1,
- });
-
- return (
- ({
- backgroundImage: `${linearGradient(
- rgba(gradients.dark.main, 0.85),
- rgba(gradients.dark.state, 0.85)
- )}, url(${bgImage})`,
- backgroundSize: "cover",
- backgroundPosition: "center",
- })}
- >
-
-
- نوع من البلوز
-
-
- ديفتونز
-
-
-
-
- skip_previous
-
-
- play_arrow
-
-
- skip_next
-
-
-
-
-
- );
-}
-
-export default MediaPlayer;
diff --git a/src/layouts/pages/rtl/components/OrdersOverview/index.tsx b/src/layouts/pages/rtl/components/OrdersOverview/index.tsx
deleted file mode 100644
index e217d26..0000000
--- a/src/layouts/pages/rtl/components/OrdersOverview/index.tsx
+++ /dev/null
@@ -1,84 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// @mui material components
-import Card from "@mui/material/Card";
-import Icon from "@mui/material/Icon";
-
-// Material Dashboard 2 PRO React TS components
-import MDBox from "components/MDBox";
-import MDTypography from "components/MDTypography";
-
-// Material Dashboard 2 PRO React TS examples components
-import TimelineItem from "examples/Timeline/TimelineItem";
-
-function OrdersOverview(): JSX.Element {
- return (
-
-
-
- نظرة عامة على الطلبات
-
-
-
-
- success.main }}>arrow_upward
-
-
-
- 24%
- {" "}
- هذا الشهر
-
-
-
-
-
-
-
-
-
-
-
- );
-}
-
-export default OrdersOverview;
diff --git a/src/layouts/pages/rtl/components/Steps/index.tsx b/src/layouts/pages/rtl/components/Steps/index.tsx
deleted file mode 100644
index 04bd415..0000000
--- a/src/layouts/pages/rtl/components/Steps/index.tsx
+++ /dev/null
@@ -1,42 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// @mui material components
-import Card from "@mui/material/Card";
-
-// Material Dashboard 2 PRO React TS components
-import MDBox from "components/MDBox";
-import MDTypography from "components/MDTypography";
-import MDBadge from "components/MDBadge";
-
-function Steps(): JSX.Element {
- return (
-
-
-
- خطوات
-
-
-
- 11.4ك
-
-
-
-
-
- );
-}
-
-export default Steps;
diff --git a/src/layouts/pages/rtl/components/UpcomingEvents/index.tsx b/src/layouts/pages/rtl/components/UpcomingEvents/index.tsx
deleted file mode 100644
index 2262f0a..0000000
--- a/src/layouts/pages/rtl/components/UpcomingEvents/index.tsx
+++ /dev/null
@@ -1,65 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// @mui material components
-import Card from "@mui/material/Card";
-
-// Material Dashboard 2 PRO React TS components
-import MDBox from "components/MDBox";
-import MDTypography from "components/MDTypography";
-
-// Material Dashboard 2 PRO React TS examples components
-import DefaultItem from "examples/Items/DefaultItem";
-
-function UpcomingEvents(): JSX.Element {
- return (
-
-
-
- الأحداث القادمة
-
-
- انضم
-
-
-
-
-
-
-
-
-
-
-
-
- );
-}
-
-export default UpcomingEvents;
diff --git a/src/layouts/pages/rtl/data/calendarEventsData.ts b/src/layouts/pages/rtl/data/calendarEventsData.ts
deleted file mode 100644
index 6f00ef4..0000000
--- a/src/layouts/pages/rtl/data/calendarEventsData.ts
+++ /dev/null
@@ -1,79 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// types
-interface Types {
- [key: string]: any;
-}
-
-const calendarEventsData: Types[] = [
- {
- title: "All day conference",
- start: "2021-08-01",
- end: "2021-08-01",
- className: "success",
- },
-
- {
- title: "Meeting with Mary",
- start: "2021-08-03",
- end: "2021-08-03",
- className: "info",
- },
-
- {
- title: "Cyber Week",
- start: "2021-08-04",
- end: "2021-08-04",
- className: "warning",
- },
-
- {
- title: "Winter Hackaton",
- start: "2021-08-05",
- end: "2021-08-05",
- className: "error",
- },
-
- {
- title: "Digital event",
- start: "2021-08-09",
- end: "2021-08-11",
- className: "warning",
- },
-
- {
- title: "Marketing event",
- start: "2021-08-12",
- end: "2021-08-12",
- className: "primary",
- },
-
- {
- title: "Dinner with Family",
- start: "2021-08-21",
- end: "2021-08-21",
- className: "error",
- },
-
- {
- title: "Black Friday",
- start: "2021-08-25",
- end: "2021-08-25",
- className: "info",
- },
-];
-
-export default calendarEventsData;
diff --git a/src/layouts/pages/rtl/data/caloriesChartData.ts b/src/layouts/pages/rtl/data/caloriesChartData.ts
deleted file mode 100644
index e0491e9..0000000
--- a/src/layouts/pages/rtl/data/caloriesChartData.ts
+++ /dev/null
@@ -1,30 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// types
-type Types = any;
-
-const caloriesChartData: Types = {
- labels: ["Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
- datasets: [
- {
- label: "Calories",
- color: "dark",
- data: [50, 45, 60, 60, 80, 65, 90, 80, 100],
- },
- ],
-};
-
-export default caloriesChartData;
diff --git a/src/layouts/pages/rtl/data/categoriesListData.tsx b/src/layouts/pages/rtl/data/categoriesListData.tsx
deleted file mode 100644
index 3191a17..0000000
--- a/src/layouts/pages/rtl/data/categoriesListData.tsx
+++ /dev/null
@@ -1,78 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// Material Dashboard 2 PRO React TS components
-import MDTypography from "components/MDTypography";
-
-// types
-type Types = any;
-
-const categoriesListData: Types = [
- {
- color: "dark",
- icon: "launch",
- name: "الأجهزة",
- description: (
- <>
- 250 في المخزن,{" "}
-
- 346+ تم البيع
-
- >
- ),
- route: "/",
- },
- {
- color: "dark",
- icon: "book_online",
- name: "تذاكر",
- description: (
- <>
- 123 مغلق,{" "}
-
- 15 افتح
-
- >
- ),
- route: "/",
- },
- {
- color: "dark",
- icon: "priority_high",
- name: "سجلات الخطأ",
- description: (
- <>
- 1 is نشيط,{" "}
-
- 40 مغلق
-
- >
- ),
- route: "/",
- },
- {
- color: "dark",
- icon: "insert_emoticon",
- name: "المستخدمين السعداء",
- description: (
-
- + 430
-
- ),
- route: "/",
- },
-];
-
-export default categoriesListData;
diff --git a/src/layouts/pages/rtl/data/progressLineChartData.ts b/src/layouts/pages/rtl/data/progressLineChartData.ts
deleted file mode 100644
index e393839..0000000
--- a/src/layouts/pages/rtl/data/progressLineChartData.ts
+++ /dev/null
@@ -1,24 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// types
-type Types = any;
-
-const progressLineChartData: Types = {
- labels: ["Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
- data: [40, 45, 42, 41, 40, 43, 40, 42, 39],
-};
-
-export default progressLineChartData;
diff --git a/src/layouts/pages/rtl/index.tsx b/src/layouts/pages/rtl/index.tsx
deleted file mode 100644
index 1e0ce0c..0000000
--- a/src/layouts/pages/rtl/index.tsx
+++ /dev/null
@@ -1,215 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-import { useEffect, useMemo, useState } from "react";
-
-// @mui material components
-import Grid from "@mui/material/Grid";
-import Icon from "@mui/material/Icon";
-
-// Material Dashboard 2 PRO React TS components
-import MDBox from "components/MDBox";
-import MDTypography from "components/MDTypography";
-
-// Material Dashboard 2 PRO React TS examples components
-import DashboardLayout from "examples/LayoutContainers/DashboardLayout";
-import DashboardNavbar from "examples/Navbars/DashboardNavbar";
-import Footer from "examples/Footer";
-import MiniStatisticsCard from "examples/Cards/StatisticsCards/MiniStatisticsCard";
-import ProgressLineChart from "examples/Charts/LineCharts/ProgressLineChart";
-import DefaultInfoCard from "examples/Cards/InfoCards/DefaultInfoCard";
-import MasterCard from "examples/Cards/MasterCard";
-import MiniInfoCard from "examples/Cards/InfoCards/MiniInfoCard";
-import ControllerCard from "examples/Cards/ControllerCard";
-import Calendar from "examples/Calendar";
-import CategoriesList from "examples/Lists/CategoriesList";
-
-// RTL page components
-import Steps from "layouts/pages/rtl/components/Steps";
-import FullBody from "layouts/pages/rtl/components/FullBody";
-import MediaPlayer from "layouts/pages/rtl/components/MediaPlayer";
-import OrdersOverview from "layouts/pages/rtl/components/OrdersOverview";
-import UpcomingEvents from "layouts/pages/rtl/components/UpcomingEvents";
-import Chart from "layouts/pages/rtl/components/Chart";
-
-// Data
-import progressLineChartData from "layouts/pages/rtl/data/progressLineChartData";
-import calendarEventsData from "layouts/pages/rtl/data/calendarEventsData";
-import categoriesListData from "layouts/pages/rtl/data/categoriesListData";
-import caloriesChartData from "layouts/pages/rtl/data/caloriesChartData";
-
-// Material Dashboard 2 PRO React TS contexts
-import { useMaterialUIController, setDirection } from "context";
-
-function RTL(): JSX.Element {
- const [, dispatch] = useMaterialUIController();
- const [lights, setLights] = useState(false);
-
- const handleSetLights = () => setLights(!lights);
-
- // Changing the direction to rtl
- useEffect(() => {
- setDirection(dispatch, "rtl");
-
- return () => setDirection(dispatch, "ltr");
- }, []);
-
- return (
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- lightbulb
-
- }
- title="درجة حرارة"
- onChange={handleSetLights}
- />
-
-
-
-
-
-
- 754
-
- م
-
- >
- }
- description="مدينة نيويورك"
- />
-
-
-
-
-
-
-
-
- {useMemo(
- () => (
-
- ),
- [calendarEventsData]
- )}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- );
-}
-
-export default RTL;
diff --git a/src/layouts/pages/users/new-user/components/Address/index.tsx b/src/layouts/pages/users/new-user/components/Address/index.tsx
deleted file mode 100644
index f824d0b..0000000
--- a/src/layouts/pages/users/new-user/components/Address/index.tsx
+++ /dev/null
@@ -1,98 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// @mui material components
-import Grid from "@mui/material/Grid";
-import Autocomplete from "@mui/material/Autocomplete";
-
-// Material Dashboard 2 PRO React TS components
-import MDBox from "components/MDBox";
-import MDTypography from "components/MDTypography";
-import MDInput from "components/MDInput";
-
-// NewUser page components
-import FormField from "layouts/pages/users/new-user/components/FormField";
-
-function Address({ formData }: any): JSX.Element {
- const { formField, values, errors, touched } = formData;
- const { address1, address2, city, zip } = formField;
- const { address1: address1V, address2: address2V, city: cityV, zip: zipV } = values;
-
- return (
-
-
- Address
-
-
-
-
- 0 && !errors.address1}
- />
-
-
-
-
-
-
-
-
-
- 0 && !errors.city}
- />
-
-
- }
- />
-
-
- 0 && !errors.zip}
- />
-
-
-
-
- );
-}
-
-export default Address;
diff --git a/src/layouts/pages/users/new-user/components/FormField/index.tsx b/src/layouts/pages/users/new-user/components/FormField/index.tsx
deleted file mode 100644
index 4317fee..0000000
--- a/src/layouts/pages/users/new-user/components/FormField/index.tsx
+++ /dev/null
@@ -1,44 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// formik components
-import { ErrorMessage, Field } from "formik";
-
-// Material Dashboard 2 PRO React TS components
-import MDBox from "components/MDBox";
-import MDTypography from "components/MDTypography";
-import MDInput from "components/MDInput";
-
-// Declaring props types for FormField
-interface Props {
- label: string;
- name: string;
- [key: string]: any;
-}
-
-function FormField({ label, name, ...rest }: Props): JSX.Element {
- return (
-
-
-
-
-
-
-
-
- );
-}
-
-export default FormField;
diff --git a/src/layouts/pages/users/new-user/components/Profile/index.tsx b/src/layouts/pages/users/new-user/components/Profile/index.tsx
deleted file mode 100644
index d590d65..0000000
--- a/src/layouts/pages/users/new-user/components/Profile/index.tsx
+++ /dev/null
@@ -1,64 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// @mui material components
-import Grid from "@mui/material/Grid";
-
-// Material Dashboard 2 PRO React TS components
-import MDBox from "components/MDBox";
-import MDTypography from "components/MDTypography";
-
-// NewUser page components
-import FormField from "layouts/pages/users/new-user/components/FormField";
-
-function Profile({ formData }: any): JSX.Element {
- const { formField, values } = formData;
- const { publicEmail, bio } = formField;
- const { publicEmail: publicEmailV, bio: bioV } = values;
-
- return (
-
-
- Profile
-
-
-
-
-
-
-
-
-
-
-
-
- );
-}
-
-export default Profile;
diff --git a/src/layouts/pages/users/new-user/components/Socials/index.tsx b/src/layouts/pages/users/new-user/components/Socials/index.tsx
deleted file mode 100644
index 74f5122..0000000
--- a/src/layouts/pages/users/new-user/components/Socials/index.tsx
+++ /dev/null
@@ -1,73 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// @mui material components
-import Grid from "@mui/material/Grid";
-
-// Material Dashboard 2 PRO React TS components
-import MDBox from "components/MDBox";
-import MDTypography from "components/MDTypography";
-
-// NewUser page components
-import FormField from "layouts/pages/users/new-user/components/FormField";
-
-function Socials({ formData }: any): JSX.Element {
- const { formField, values, errors, touched } = formData;
- const { twitter, facebook, instagram } = formField;
- const { twitter: twitterV, facebook: facebookV, instagram: instagramV } = values;
-
- return (
-
-
- Socials
-
-
-
-
- 0 && !errors.twitter}
- />
-
-
-
-
-
-
-
-
-
-
- );
-}
-
-export default Socials;
diff --git a/src/layouts/pages/users/new-user/components/UserInfo/index.tsx b/src/layouts/pages/users/new-user/components/UserInfo/index.tsx
deleted file mode 100644
index 682c2fa..0000000
--- a/src/layouts/pages/users/new-user/components/UserInfo/index.tsx
+++ /dev/null
@@ -1,124 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// @mui material components
-import Grid from "@mui/material/Grid";
-
-// Material Dashboard 2 PRO React TS components
-import MDBox from "components/MDBox";
-import MDTypography from "components/MDTypography";
-
-// NewUser page components
-import FormField from "layouts/pages/users/new-user/components/FormField";
-
-function UserInfo({ formData }: any): JSX.Element {
- const { formField, values, errors, touched } = formData;
- const { firstName, lastName, company, email, password, repeatPassword } = formField;
- const {
- firstName: firstNameV,
- lastName: lastNameV,
- company: companyV,
- email: emailV,
- password: passwordV,
- repeatPassword: repeatPasswordV,
- } = values;
-
- return (
-
-
- About me
-
- Mandatory informations
-
-
-
-
-
- 0 && !errors.firstName}
- />
-
-
- 0 && !errors.lastName}
- />
-
-
-
-
-
-
-
- 0 && !errors.email}
- />
-
-
-
-
- 0 && !errors.password}
- inputProps={{ autoComplete: "" }}
- />
-
-
- 0 && !errors.repeatPassword}
- inputProps={{ autoComplete: "" }}
- />
-
-
-
-
- );
-}
-
-export default UserInfo;
diff --git a/src/layouts/pages/users/new-user/index.tsx b/src/layouts/pages/users/new-user/index.tsx
deleted file mode 100644
index a660f83..0000000
--- a/src/layouts/pages/users/new-user/index.tsx
+++ /dev/null
@@ -1,164 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-import { useState } from "react";
-
-// formik components
-import { Formik, Form } from "formik";
-
-// @mui material components
-import Grid from "@mui/material/Grid";
-import Card from "@mui/material/Card";
-import Stepper from "@mui/material/Stepper";
-import Step from "@mui/material/Step";
-import StepLabel from "@mui/material/StepLabel";
-
-// Material Dashboard 2 PRO React TS components
-import MDBox from "components/MDBox";
-import MDButton from "components/MDButton";
-
-// Material Dashboard 2 PRO React TS examples components
-import DashboardLayout from "examples/LayoutContainers/DashboardLayout";
-import DashboardNavbar from "examples/Navbars/DashboardNavbar";
-import Footer from "examples/Footer";
-
-// NewUser page components
-import UserInfo from "layouts/pages/users/new-user/components/UserInfo";
-import Address from "layouts/pages/users/new-user/components/Address";
-import Socials from "layouts/pages/users/new-user/components/Socials";
-import Profile from "layouts/pages/users/new-user/components/Profile";
-
-// NewUser layout schemas for form and form feilds
-import validations from "layouts/pages/users/new-user/schemas/validations";
-import form from "layouts/pages/users/new-user/schemas/form";
-import initialValues from "layouts/pages/users/new-user/schemas/initialValues";
-
-function getSteps(): string[] {
- return ["User Info", "Address", "Social", "Profile"];
-}
-
-function getStepContent(stepIndex: number, formData: any): JSX.Element {
- switch (stepIndex) {
- case 0:
- return ;
- case 1:
- return ;
- case 2:
- return ;
- case 3:
- return ;
- default:
- return null;
- }
-}
-
-function NewUser(): JSX.Element {
- const [activeStep, setActiveStep] = useState(0);
- const steps = getSteps();
- const { formId, formField } = form;
- const currentValidation = validations[activeStep];
- const isLastStep = activeStep === steps.length - 1;
-
- const sleep = (ms: any) =>
- new Promise((resolve) => {
- setTimeout(resolve, ms);
- });
- const handleBack = () => setActiveStep(activeStep - 1);
-
- const submitForm = async (values: any, actions: any) => {
- await sleep(1000);
-
- // eslint-disable-next-line no-alert
- alert(JSON.stringify(values, null, 2));
-
- actions.setSubmitting(false);
- actions.resetForm();
-
- setActiveStep(0);
- };
-
- const handleSubmit = (values: any, actions: any) => {
- if (isLastStep) {
- submitForm(values, actions);
- } else {
- setActiveStep(activeStep + 1);
- actions.setTouched({});
- actions.setSubmitting(false);
- }
- };
-
- return (
-
-
-
-
-
-
- {({ values, errors, touched, isSubmitting }) => (
-
- )}
-
-
-
-
-
-
- );
-}
-
-export default NewUser;
diff --git a/src/layouts/pages/users/new-user/schemas/form.ts b/src/layouts/pages/users/new-user/schemas/form.ts
deleted file mode 100644
index 75cc1f7..0000000
--- a/src/layouts/pages/users/new-user/schemas/form.ts
+++ /dev/null
@@ -1,109 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-const form = {
- formId: "new-user-form",
- formField: {
- firstName: {
- name: "firstName",
- label: "First Name",
- type: "text",
- errorMsg: "First name is required.",
- },
- lastName: {
- name: "lastName",
- label: "Last Name",
- type: "text",
- errorMsg: "Last name is required.",
- },
- company: {
- name: "company",
- label: "Company",
- type: "text",
- },
- email: {
- name: "email",
- label: "Email Address",
- type: "email",
- errorMsg: "Email address is required.",
- invalidMsg: "Your email address is invalid",
- },
- password: {
- name: "password",
- label: "Password",
- type: "password",
- errorMsg: "Password is required.",
- invalidMsg: "Your password should be more than 6 characters.",
- },
- repeatPassword: {
- name: "repeatPassword",
- label: "Repeat Password",
- type: "password",
- errorMsg: "Password is required.",
- invalidMsg: "Your password doesn't match.",
- },
- address1: {
- name: "address1",
- label: "Address 1",
- type: "text",
- errorMsg: "Address is required.",
- },
- address2: {
- name: "address2",
- label: "Address 2",
- type: "text",
- },
- city: {
- name: "city",
- label: "City",
- type: "text",
- errorMsg: "City is required.",
- },
- zip: {
- name: "zip",
- label: "Zip",
- type: "number",
- errorMsg: "Zip is required.",
- invalidMsg: "Zipcode is not valie (e.g. 70000).",
- },
- twitter: {
- name: "twitter",
- label: "Twitter Handle",
- type: "text",
- errorMsg: "Twitter profile is required.",
- },
- facebook: {
- name: "facebook",
- label: "Facebook Account",
- type: "text",
- },
- instagram: {
- name: "instagram",
- label: "Instagram Account",
- type: "text",
- },
- publicEmail: {
- name: "publicEmail",
- label: "Public Email",
- type: "email",
- },
- bio: {
- name: "bio",
- label: "Bio",
- },
- },
-};
-
-export default form;
diff --git a/src/layouts/pages/users/new-user/schemas/initialValues.ts b/src/layouts/pages/users/new-user/schemas/initialValues.ts
deleted file mode 100644
index 7a1886e..0000000
--- a/src/layouts/pages/users/new-user/schemas/initialValues.ts
+++ /dev/null
@@ -1,56 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-import checkout from "layouts/pages/users/new-user/schemas/form";
-
-const {
- formField: {
- firstName,
- lastName,
- company,
- email,
- password,
- repeatPassword,
- address1,
- address2,
- city,
- zip,
- twitter,
- facebook,
- instagram,
- publicEmail,
- bio,
- },
-} = checkout;
-
-const initialValues = {
- [firstName.name]: "",
- [lastName.name]: "",
- [company.name]: "",
- [email.name]: "",
- [password.name]: "",
- [repeatPassword.name]: "",
- [address1.name]: "",
- [address2.name]: "",
- [city.name]: "",
- [zip.name]: "",
- [twitter.name]: "",
- [facebook.name]: "",
- [instagram.name]: "",
- [publicEmail.name]: "",
- [bio.name]: "",
-};
-
-export default initialValues;
diff --git a/src/layouts/pages/users/new-user/schemas/validations.ts b/src/layouts/pages/users/new-user/schemas/validations.ts
deleted file mode 100644
index 3edf9af..0000000
--- a/src/layouts/pages/users/new-user/schemas/validations.ts
+++ /dev/null
@@ -1,44 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-import * as Yup from "yup";
-import checkout from "layouts/pages/users/new-user/schemas/form";
-
-const {
- formField: { firstName, lastName, email, password, repeatPassword, address1, city, zip, twitter },
-} = checkout;
-
-const validations = [
- Yup.object().shape({
- [firstName.name]: Yup.string().required(firstName.errorMsg),
- [lastName.name]: Yup.string().required(lastName.errorMsg),
- [email.name]: Yup.string().required(email.errorMsg).email(email.invalidMsg),
- [password.name]: Yup.string().required(password.errorMsg).min(6, password.invalidMsg),
- [password.name]: Yup.string().required(password.errorMsg).min(6, password.invalidMsg),
- [repeatPassword.name]: Yup.string()
- .required(repeatPassword.errorMsg)
- .oneOf([Yup.ref("password"), null], repeatPassword.invalidMsg),
- }),
- Yup.object().shape({
- [address1.name]: Yup.string().required(address1.errorMsg),
- [city.name]: Yup.string().required(city.errorMsg),
- [zip.name]: Yup.string().required(zip.errorMsg).min(6, zip.invalidMsg),
- }),
- Yup.object().shape({
- [twitter.name]: Yup.string().required(twitter.errorMsg),
- }),
-];
-
-export default validations;
diff --git a/src/layouts/pages/widgets/components/Chart/configs/index.ts b/src/layouts/pages/widgets/components/Chart/configs/index.ts
deleted file mode 100644
index bb9c2f7..0000000
--- a/src/layouts/pages/widgets/components/Chart/configs/index.ts
+++ /dev/null
@@ -1,62 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-function configs(labels: any, datasets: any) {
- return {
- data: {
- labels,
- datasets: [...datasets],
- },
- options: {
- responsive: true,
- maintainAspectRatio: false,
- plugins: {
- legend: {
- display: false,
- },
- },
- interaction: {
- intersect: false,
- mode: "index",
- },
- scales: {
- y: {
- grid: {
- drawBorder: false,
- display: false,
- drawOnChartArea: false,
- drawTicks: false,
- },
- ticks: {
- display: false,
- },
- },
- x: {
- grid: {
- drawBorder: false,
- display: false,
- drawOnChartArea: false,
- drawTicks: false,
- },
- ticks: {
- display: false,
- },
- },
- },
- },
- };
-}
-
-export default configs;
diff --git a/src/layouts/pages/widgets/components/Chart/index.tsx b/src/layouts/pages/widgets/components/Chart/index.tsx
deleted file mode 100644
index fb7e195..0000000
--- a/src/layouts/pages/widgets/components/Chart/index.tsx
+++ /dev/null
@@ -1,104 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-import { useRef, useEffect, useState, useMemo, ReactNode } from "react";
-
-// react-chartjs-2 components
-import { Line } from "react-chartjs-2";
-
-// @mui material components
-import Card from "@mui/material/Card";
-
-// Material Dashboard 2 PRO React TS components
-import MDBox from "components/MDBox";
-import MDTypography from "components/MDTypography";
-
-// Material Dashboard 2 PRO React TS Helper Functions
-import gradientChartLine from "assets/theme/functions/gradientChartLine";
-
-// Chart configurations
-import configs from "layouts/pages/widgets/components/Chart/configs";
-
-// Material Dashboard 2 PRO React TS Base Styles
-import colors from "assets/theme/base/colors";
-
-// Declaring props types for Chart
-interface Props {
- title: string;
- count: number | ReactNode;
- percentage: {
- color: "primary" | "secondary" | "info" | "success" | "warning" | "error" | "dark";
- label: string | ReactNode;
- };
- chart: {
- labels: string[];
- datasets: {
- label: string;
- color: "primary" | "secondary" | "info" | "success" | "warning" | "error" | "light" | "dark";
- data: number[];
- }[];
- };
-}
-
-function Chart({ title, count, percentage, chart }: Props): JSX.Element {
- const chartRef = useRef(null);
- const [chartData, setChartData] = useState({});
- const { data, options }: any = chartData;
-
- useEffect(() => {
- const chartDatasets = chart.datasets.map((dataset) => ({
- ...dataset,
- tension: 0.4,
- pointRadius: 0,
- borderWidth: 2,
- borderColor: colors[dataset.color].main,
- fill: true,
- maxBarThickness: 6,
- backgroundColor: gradientChartLine(
- chartRef.current.children[0],
- colors[dataset.color].main,
- 0.02
- ),
- }));
-
- setChartData(configs(chart.labels, chartDatasets));
- }, [chart]);
-
- return (
-
-
-
- {title}
-
-
- {count}
-
- {percentage.label}
-
-
-
- {useMemo(
- () => (
-
-
-
- ),
- [chartData]
- )}
-
- );
-}
-
-export default Chart;
diff --git a/src/layouts/pages/widgets/components/FullBody/index.tsx b/src/layouts/pages/widgets/components/FullBody/index.tsx
deleted file mode 100644
index 771feb6..0000000
--- a/src/layouts/pages/widgets/components/FullBody/index.tsx
+++ /dev/null
@@ -1,42 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// @mui material components
-import Card from "@mui/material/Card";
-
-// Material Dashboard 2 PRO React TS components
-import MDBox from "components/MDBox";
-import MDTypography from "components/MDTypography";
-import MDBadge from "components/MDBadge";
-
-function FullBody(): JSX.Element {
- return (
-
-
-
- Full Body
-
-
-
-
-
- What matters is the people who are sparked by it. And the people who are liked.
-
-
-
- );
-}
-
-export default FullBody;
diff --git a/src/layouts/pages/widgets/components/MediaPlayer/index.tsx b/src/layouts/pages/widgets/components/MediaPlayer/index.tsx
deleted file mode 100644
index 5ac3065..0000000
--- a/src/layouts/pages/widgets/components/MediaPlayer/index.tsx
+++ /dev/null
@@ -1,92 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// @mui material components
-import Card from "@mui/material/Card";
-import Icon from "@mui/material/Icon";
-import { Theme } from "@mui/material/styles";
-
-// Material Dashboard 2 PRO React TS components
-import MDBox from "components/MDBox";
-import MDTypography from "components/MDTypography";
-import MDButton from "components/MDButton";
-
-// Images
-import bgImage from "assets/images/bg-player.jpeg";
-
-function MediaPlayer(): JSX.Element {
- const mediaPlayerButtonStyles = ({ functions: { pxToRem } }: Theme) => ({
- width: pxToRem(46),
- height: pxToRem(46),
- minWidth: pxToRem(46),
- minHeight: pxToRem(46),
- mr: 1,
- });
-
- return (
- ({
- backgroundImage: `${linearGradient(
- rgba(gradients.dark.main, 0.85),
- rgba(gradients.dark.state, 0.85)
- )}, url(${bgImage})`,
- backgroundSize: "cover",
- backgroundPosition: "center",
- })}
- >
-
-
- Some Kind Of Blues
-
-
- Deftones
-
-
-
-
- skip_previous
-
-
- play_arrow
-
-
- skip_next
-
-
-
-
-
- );
-}
-
-export default MediaPlayer;
diff --git a/src/layouts/pages/widgets/components/OrdersOverview/index.tsx b/src/layouts/pages/widgets/components/OrdersOverview/index.tsx
deleted file mode 100644
index 10e2411..0000000
--- a/src/layouts/pages/widgets/components/OrdersOverview/index.tsx
+++ /dev/null
@@ -1,84 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// @mui material components
-import Card from "@mui/material/Card";
-import Icon from "@mui/material/Icon";
-
-// Material Dashboard 2 PRO React TS components
-import MDBox from "components/MDBox";
-import MDTypography from "components/MDTypography";
-
-// Material Dashboard 2 PRO React TS examples components
-import TimelineItem from "examples/Timeline/TimelineItem";
-
-function OrdersOverview(): JSX.Element {
- return (
-
-
-
- Orders overview
-
-
-
-
- success.main }}>arrow_upward
-
-
-
- 24%
- {" "}
- this month
-
-
-
-
-
-
-
-
-
-
-
- );
-}
-
-export default OrdersOverview;
diff --git a/src/layouts/pages/widgets/components/Steps/index.tsx b/src/layouts/pages/widgets/components/Steps/index.tsx
deleted file mode 100644
index 730b412..0000000
--- a/src/layouts/pages/widgets/components/Steps/index.tsx
+++ /dev/null
@@ -1,42 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// @mui material components
-import Card from "@mui/material/Card";
-
-// Material Dashboard 2 PRO React TS components
-import MDBox from "components/MDBox";
-import MDTypography from "components/MDTypography";
-import MDBadge from "components/MDBadge";
-
-function Steps(): JSX.Element {
- return (
-
-
-
- Steps
-
-
-
- 11.4K
-
-
-
-
-
- );
-}
-
-export default Steps;
diff --git a/src/layouts/pages/widgets/components/UpcomingEvents/index.tsx b/src/layouts/pages/widgets/components/UpcomingEvents/index.tsx
deleted file mode 100644
index 08edf22..0000000
--- a/src/layouts/pages/widgets/components/UpcomingEvents/index.tsx
+++ /dev/null
@@ -1,65 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// @mui material components
-import Card from "@mui/material/Card";
-
-// Material Dashboard 2 PRO React TS components
-import MDBox from "components/MDBox";
-import MDTypography from "components/MDTypography";
-
-// Material Dashboard 2 PRO React TS examples components
-import DefaultItem from "examples/Items/DefaultItem";
-
-function UpcomingEvents(): JSX.Element {
- return (
-
-
-
- Upcoming events
-
-
- Joined
-
-
-
-
-
-
-
-
-
-
-
-
- );
-}
-
-export default UpcomingEvents;
diff --git a/src/layouts/pages/widgets/data/calendarEventsData.ts b/src/layouts/pages/widgets/data/calendarEventsData.ts
deleted file mode 100644
index e4e826a..0000000
--- a/src/layouts/pages/widgets/data/calendarEventsData.ts
+++ /dev/null
@@ -1,74 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-const calendarEventsData = [
- {
- title: "All day conference",
- start: "2021-08-01",
- end: "2021-08-01",
- className: "success",
- },
-
- {
- title: "Meeting with Mary",
- start: "2021-08-03",
- end: "2021-08-03",
- className: "info",
- },
-
- {
- title: "Cyber Week",
- start: "2021-08-04",
- end: "2021-08-04",
- className: "warning",
- },
-
- {
- title: "Winter Hackaton",
- start: "2021-08-05",
- end: "2021-08-05",
- className: "error",
- },
-
- {
- title: "Digital event",
- start: "2021-08-09",
- end: "2021-08-11",
- className: "warning",
- },
-
- {
- title: "Marketing event",
- start: "2021-08-12",
- end: "2021-08-12",
- className: "primary",
- },
-
- {
- title: "Dinner with Family",
- start: "2021-08-21",
- end: "2021-08-21",
- className: "error",
- },
-
- {
- title: "Black Friday",
- start: "2021-08-25",
- end: "2021-08-25",
- className: "info",
- },
-];
-
-export default calendarEventsData;
diff --git a/src/layouts/pages/widgets/data/caloriesChartData.ts b/src/layouts/pages/widgets/data/caloriesChartData.ts
deleted file mode 100644
index e0491e9..0000000
--- a/src/layouts/pages/widgets/data/caloriesChartData.ts
+++ /dev/null
@@ -1,30 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// types
-type Types = any;
-
-const caloriesChartData: Types = {
- labels: ["Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
- datasets: [
- {
- label: "Calories",
- color: "dark",
- data: [50, 45, 60, 60, 80, 65, 90, 80, 100],
- },
- ],
-};
-
-export default caloriesChartData;
diff --git a/src/layouts/pages/widgets/data/categoriesListData.tsx b/src/layouts/pages/widgets/data/categoriesListData.tsx
deleted file mode 100644
index 87bfd5f..0000000
--- a/src/layouts/pages/widgets/data/categoriesListData.tsx
+++ /dev/null
@@ -1,78 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// Material Dashboard 2 PRO React TS components
-import MDTypography from "components/MDTypography";
-
-// types
-type Types = any;
-
-const categoriesListData: Types = [
- {
- color: "dark",
- icon: "launch",
- name: "Devices",
- description: (
- <>
- 250 in stock,{" "}
-
- 346+ sold
-
- >
- ),
- route: "/",
- },
- {
- color: "dark",
- icon: "book_online",
- name: "Tickets",
- description: (
- <>
- 123 closed,{" "}
-
- 15 open
-
- >
- ),
- route: "/",
- },
- {
- color: "dark",
- icon: "priority_high",
- name: "Error logs",
- description: (
- <>
- 1 is active,{" "}
-
- 40 closed
-
- >
- ),
- route: "/",
- },
- {
- color: "dark",
- icon: "insert_emoticon",
- name: "Happy users",
- description: (
-
- + 430
-
- ),
- route: "/",
- },
-];
-
-export default categoriesListData;
diff --git a/src/layouts/pages/widgets/data/progressLineChartData.ts b/src/layouts/pages/widgets/data/progressLineChartData.ts
deleted file mode 100644
index e393839..0000000
--- a/src/layouts/pages/widgets/data/progressLineChartData.ts
+++ /dev/null
@@ -1,24 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-// types
-type Types = any;
-
-const progressLineChartData: Types = {
- labels: ["Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
- data: [40, 45, 42, 41, 40, 43, 40, 42, 39],
-};
-
-export default progressLineChartData;
diff --git a/src/layouts/pages/widgets/index.tsx b/src/layouts/pages/widgets/index.tsx
deleted file mode 100644
index 7e4aeff..0000000
--- a/src/layouts/pages/widgets/index.tsx
+++ /dev/null
@@ -1,204 +0,0 @@
-/**
-=========================================================
-* Material Dashboard 2 PRO React TS - v1.0.0
-=========================================================
-
-* Product Page: https://www.creative-tim.com/product/material-dashboard-2-pro-react-ts
-* Copyright 2022 Creative Tim (https://www.creative-tim.com)
-
-Coded by www.creative-tim.com
-
- =========================================================
-
-* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-*/
-
-import { useMemo, useState } from "react";
-
-// @mui material components
-import Grid from "@mui/material/Grid";
-import Icon from "@mui/material/Icon";
-
-// Material Dashboard 2 PRO React TS components
-import MDBox from "components/MDBox";
-import MDTypography from "components/MDTypography";
-
-// Material Dashboard 2 PRO React TS examples components
-import DashboardLayout from "examples/LayoutContainers/DashboardLayout";
-import DashboardNavbar from "examples/Navbars/DashboardNavbar";
-import Footer from "examples/Footer";
-import MiniStatisticsCard from "examples/Cards/StatisticsCards/MiniStatisticsCard";
-import ProgressLineChart from "examples/Charts/LineCharts/ProgressLineChart";
-import DefaultInfoCard from "examples/Cards/InfoCards/DefaultInfoCard";
-import MasterCard from "examples/Cards/MasterCard";
-import MiniInfoCard from "examples/Cards/InfoCards/MiniInfoCard";
-import ControllerCard from "examples/Cards/ControllerCard";
-import Calendar from "examples/Calendar";
-import CategoriesList from "examples/Lists/CategoriesList";
-
-// Widgets page components
-import Steps from "layouts/pages/widgets/components/Steps";
-import FullBody from "layouts/pages/widgets/components/FullBody";
-import MediaPlayer from "layouts/pages/widgets/components/MediaPlayer";
-import OrdersOverview from "layouts/pages/widgets/components/OrdersOverview";
-import UpcomingEvents from "layouts/pages/widgets/components/UpcomingEvents";
-import Chart from "layouts/pages/widgets/components/Chart";
-
-// Data
-import progressLineChartData from "layouts/pages/widgets/data/progressLineChartData";
-import calendarEventsData from "layouts/pages/widgets/data/calendarEventsData";
-import categoriesListData from "layouts/pages/widgets/data/categoriesListData";
-import caloriesChartData from "layouts/pages/widgets/data/caloriesChartData";
-
-function Widgets(): JSX.Element {
- const [lights, setLights] = useState(false);
-
- const handleSetLights = () => setLights(!lights);
-
- return (
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- lightbulb
-
- }
- title="Lights"
- onChange={handleSetLights}
- />
-
-
-
-
-
-
- 754
-
- m
-
- >
- }
- description="New York City"
- />
-
-
-
-
-
-
-
-
- {useMemo(
- () => (
-
- ),
- [calendarEventsData]
- )}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- );
-}
-
-export default Widgets;
diff --git a/src/qqq/components/Temporary/DataTable/index.tsx b/src/qqq/components/Temporary/DataTable/index.tsx
index 8f9951a..75bfa55 100644
--- a/src/qqq/components/Temporary/DataTable/index.tsx
+++ b/src/qqq/components/Temporary/DataTable/index.tsx
@@ -30,9 +30,9 @@ import Tooltip from "@mui/material/Tooltip";
import parse from "html-react-parser";
import {useEffect, useMemo, useState} from "react";
import {useAsyncDebounce, useGlobalFilter, usePagination, useSortBy, useTable} from "react-table";
-import DefaultCell from "layouts/dashboards/sales/components/DefaultCell";
import DataTableBodyCell from "qqq/components/Temporary/DataTable/DataTableBodyCell";
import DataTableHeadCell from "qqq/components/Temporary/DataTable/DataTableHeadCell";
+import DefaultCell from "qqq/components/Temporary/DefaultCell";
import MDBox from "qqq/components/Temporary/MDBox";
import MDInput from "qqq/components/Temporary/MDInput";
import MDPagination from "qqq/components/Temporary/MDPagination";
@@ -45,7 +45,6 @@ export interface TableDataInput
rows: { [key: string]: any }[];
}
-// Declaring props types for DataTable
interface Props
{
entriesPerPage?:
diff --git a/src/layouts/ecommerce/products/product-page/components/DefaultCell/index.tsx b/src/qqq/components/Temporary/DefaultCell/index.tsx
similarity index 70%
rename from src/layouts/ecommerce/products/product-page/components/DefaultCell/index.tsx
rename to src/qqq/components/Temporary/DefaultCell/index.tsx
index 39c9f2b..6d3583e 100644
--- a/src/layouts/ecommerce/products/product-page/components/DefaultCell/index.tsx
+++ b/src/qqq/components/Temporary/DefaultCell/index.tsx
@@ -13,17 +13,16 @@ Coded by www.creative-tim.com
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
*/
-import { ReactNode } from "react";
-
-// Material Dashboard 2 PRO React TS components
+import {ReactNode} from "react";
import MDTypography from "components/MDTypography";
-function DefaultCell({ children }: { children: ReactNode }): JSX.Element {
- return (
-
- {children}
-
- );
+function DefaultCell({children}: { children: ReactNode }): JSX.Element
+{
+ return (
+
+ {children}
+
+ );
}
export default DefaultCell;
diff --git a/src/qqq/pages/dashboards/Widgets/TableCard.tsx b/src/qqq/pages/dashboards/Widgets/TableCard.tsx
index d2d653d..a0a9d86 100644
--- a/src/qqq/pages/dashboards/Widgets/TableCard.tsx
+++ b/src/qqq/pages/dashboards/Widgets/TableCard.tsx
@@ -31,10 +31,10 @@ import TableRow from "@mui/material/TableRow";
import parse from "html-react-parser";
import React, {useEffect, useState} from "react";
import {NavLink} from "react-router-dom";
-import DefaultCell from "layouts/dashboards/sales/components/DefaultCell";
import DataTable, {TableDataInput} from "qqq/components/Temporary/DataTable";
import DataTableBodyCell from "qqq/components/Temporary/DataTable/DataTableBodyCell";
import DataTableHeadCell from "qqq/components/Temporary/DataTable/DataTableHeadCell";
+import DefaultCell from "qqq/components/Temporary/DefaultCell";
import MDBox from "qqq/components/Temporary/MDBox";
import MDTypography from "qqq/components/Temporary/MDTypography";