diff --git a/src/Components/CheckoutOurNew/BaseSwiperForTabs.tsx b/src/Components/CheckoutOurNew/BaseSwiperForTabs.tsx index b018ecd..476793e 100644 --- a/src/Components/CheckoutOurNew/BaseSwiperForTabs.tsx +++ b/src/Components/CheckoutOurNew/BaseSwiperForTabs.tsx @@ -5,7 +5,6 @@ import "swiper/css/navigation"; import "swiper/css/pagination"; import "swiper/css/scrollbar";import { A11y, Autoplay, Navigation,Scrollbar } from 'swiper/modules'; import Spinner from '../Utils/Loading/Spinner'; -import TeamCard from '../Ui/TeamCard'; import CheckoutCard from './CheckoutCard'; diff --git a/src/Components/Distributor/CollapsChildren.tsx b/src/Components/Distributor/CollapsChildren.tsx index f6277be..257ddec 100644 --- a/src/Components/Distributor/CollapsChildren.tsx +++ b/src/Components/Distributor/CollapsChildren.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { CiMail } from "react-icons/ci"; import { FaPhoneFlip } from "react-icons/fa6"; import { SlPrinter } from "react-icons/sl"; diff --git a/src/Components/Distributor/Distributor.tsx b/src/Components/Distributor/Distributor.tsx index 67ce1e2..b59d6dd 100644 --- a/src/Components/Distributor/Distributor.tsx +++ b/src/Components/Distributor/Distributor.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { DistributorArray, DistributorArray2 } from '../../data/Distributor' import DistributorWord from '../Ui/DistributorWord' import AnimationButton from '../Ui/AnimationButton' diff --git a/src/Components/Distributor/DistributorCollaps.tsx b/src/Components/Distributor/DistributorCollaps.tsx index b7773d8..a4bf776 100644 --- a/src/Components/Distributor/DistributorCollaps.tsx +++ b/src/Components/Distributor/DistributorCollaps.tsx @@ -1,7 +1,5 @@ import type { CollapseProps } from "antd"; import { Collapse } from "antd"; -import React, { useState } from 'react'; -import { useTranslation } from "react-i18next"; import classNames from 'classnames'; import CollapsChildren from "./CollapsChildren"; diff --git a/src/Components/Document/Document.tsx b/src/Components/Document/Document.tsx index 8682728..b5f0256 100644 --- a/src/Components/Document/Document.tsx +++ b/src/Components/Document/Document.tsx @@ -1,8 +1,5 @@ -import React, { useState, useEffect } from 'react'; import { Pagination } from 'antd'; import DocumentCard from './DocumentCard'; -import { useNavigate, useLocation } from 'react-router-dom'; -import { useTranslation } from 'react-i18next'; import { useWindowResize } from '../../Hooks/useWindowResize'; import { useGetCertificate } from '../../api/certificate'; diff --git a/src/Components/Document/DocumentCard.tsx b/src/Components/Document/DocumentCard.tsx index 524d8d2..1368ff0 100644 --- a/src/Components/Document/DocumentCard.tsx +++ b/src/Components/Document/DocumentCard.tsx @@ -1,16 +1,12 @@ -import React from 'react' -const DocumentCard = ({name,text,image}:any) => { - +const DocumentCard = ({name,image}:any) => { return (
document_card
-

{name}

- {/*

{text}

*/}
) } diff --git a/src/Components/HOC/SearchWithDrawer.tsx b/src/Components/HOC/SearchWithDrawer.tsx index f3ae48e..ea75e17 100644 --- a/src/Components/HOC/SearchWithDrawer.tsx +++ b/src/Components/HOC/SearchWithDrawer.tsx @@ -1,4 +1,3 @@ -import { useState } from 'react'; import type { DrawerProps } from 'antd'; import { Drawer, Space } from 'antd'; import { TiDeleteOutline } from "react-icons/ti"; diff --git a/src/Components/Home/ComprehensivePurchase.tsx b/src/Components/Home/ComprehensivePurchase.tsx index 1a746c9..ebba656 100644 --- a/src/Components/Home/ComprehensivePurchase.tsx +++ b/src/Components/Home/ComprehensivePurchase.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { IoIosArrowForward } from "react-icons/io"; const ComprehensivePurchase = () => { diff --git a/src/Components/Home/HeroSection.tsx b/src/Components/Home/HeroSection.tsx index b4e52dd..3c4da1a 100644 --- a/src/Components/Home/HeroSection.tsx +++ b/src/Components/Home/HeroSection.tsx @@ -1,4 +1,3 @@ -import React from 'react' import HeroSwiper from './HeroSwiper' import AnimationButton from '../Ui/AnimationButton'; diff --git a/src/Components/OurTeam/TeamSwiper.tsx b/src/Components/OurTeam/TeamSwiper.tsx index cc9e0b1..7cbe9c7 100644 --- a/src/Components/OurTeam/TeamSwiper.tsx +++ b/src/Components/OurTeam/TeamSwiper.tsx @@ -5,7 +5,6 @@ import "swiper/css/navigation"; import "swiper/css/pagination"; import "swiper/css/scrollbar";import { A11y, Autoplay, Navigation,Scrollbar } from 'swiper/modules'; import Spinner from '../Utils/Loading/Spinner'; -import TeamCard from '../Ui/TeamCard'; diff --git a/src/Components/Pagination/usePagination.ts b/src/Components/Pagination/usePagination.ts index deaa454..d08222e 100644 --- a/src/Components/Pagination/usePagination.ts +++ b/src/Components/Pagination/usePagination.ts @@ -1,5 +1,3 @@ -import { useState, useEffect } from "react"; -import { useLocation, useNavigate } from "react-router-dom"; import { PaginationAntd, PaginationMeta } from "../../type/pagination"; interface Data { @@ -8,7 +6,6 @@ interface Data { const usePagination = (data: Data) => { const navigate = useNavigate(); - const location = useLocation(); const [pagination, setPagination] = useState({ current: data?.meta?.current_page || 1, diff --git a/src/Components/Partner/Partner.tsx b/src/Components/Partner/Partner.tsx index 0da2a77..708631a 100644 --- a/src/Components/Partner/Partner.tsx +++ b/src/Components/Partner/Partner.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { partnerArray } from '../../data/Partner'; const Partner = () => { diff --git a/src/Components/Products/BrandFilter.tsx b/src/Components/Products/BrandFilter.tsx index 2cde62a..9cc8988 100644 --- a/src/Components/Products/BrandFilter.tsx +++ b/src/Components/Products/BrandFilter.tsx @@ -1,4 +1,3 @@ -import React from "react"; import { Checkbox } from "antd"; import type { CheckboxProps } from "antd"; import { useFilterStateState } from "../../zustand/Filter"; diff --git a/src/Components/Products/ProductCard.tsx b/src/Components/Products/ProductCard.tsx index 99a31a0..7f508ae 100644 --- a/src/Components/Products/ProductCard.tsx +++ b/src/Components/Products/ProductCard.tsx @@ -1,11 +1,9 @@ -import { useNavigate } from 'react-router-dom'; import { languageObject } from '../Utils/languageObject'; const ProductCard = ({data}:any) => { const navigate = useNavigate(); const productLink = `/product/${data?.id}` - console.log(data); return (
diff --git a/src/Components/Products/SingleProductSwiper.tsx b/src/Components/Products/SingleProductSwiper.tsx index c67497d..901e61a 100644 --- a/src/Components/Products/SingleProductSwiper.tsx +++ b/src/Components/Products/SingleProductSwiper.tsx @@ -5,20 +5,21 @@ import "swiper/css/navigation"; import "swiper/css/pagination"; import "swiper/css/scrollbar";import { A11y, Autoplay, Navigation,Scrollbar } from 'swiper/modules'; import Spinner from '../Utils/Loading/Spinner'; -import ProductCard from './ProductCard'; -const SingleProductSwiper = ({data,isLoading}:{data:any,isLoading:boolean}) => { - const [mainImage, setMainImage] = useState(data?.file); -console.log(data?.data?.attachment); +const SingleProductSwiper = ({data,isLoading,changeMainImage,mainImage}:{data:any,isLoading:boolean,changeMainImage:any,mainImage:any}) => { - const handleImageClick = (image:any) => { - setMainImage(image); - }; - return ( -
- { + changeMainImage(image); + }; + + return ( +
+ {/*
handleImageClick(data?.data?.file)}> + Main Product Image +
*/} +
handleImageClick(attachment)}> + {`product_multi_image_${id}`}
) })} + {/* */}
); diff --git a/src/Components/Service/Service.tsx b/src/Components/Service/Service.tsx index a0e8288..3db8185 100644 --- a/src/Components/Service/Service.tsx +++ b/src/Components/Service/Service.tsx @@ -1,5 +1,3 @@ -import React from 'react' -import { ServicesArray } from '../../data/Service'; const Service = () => { const {t} = useTranslation(); @@ -12,22 +10,6 @@ const Service = () => { MDN - {/* */} - {/* - - MDN -
- { - ServicesArray.map((e) =>( -
-

{t(e.title)}

-

{t(e.text)}

-
- )) - } -
-
*/} - {/* */}
) } diff --git a/src/Components/Utils/TalabeeField/TalabeeField.scss b/src/Components/Utils/TalabeeField/TalabeeField.scss deleted file mode 100644 index dbed0c6..0000000 --- a/src/Components/Utils/TalabeeField/TalabeeField.scss +++ /dev/null @@ -1,57 +0,0 @@ -.TalabeeField{ - >*{ - width: 100%; - } - .text,.ant-form-item{ - margin-bottom:7px !important; - - } - - >span{ - margin-bottom: 0px !important; - &:focus-within{ - border-color: var(--primary) ; - box-shadow: 0 0 0 1px var(--primary); - cursor: pointer; - } - &:has(.is-invalid){ - border-color: red !important; - - } - input{ - color: var(--text); - background: var(--bg); - } - -input:-webkit-autofill, -input:-webkit-autofill:hover, -input:-webkit-autofill:focus, -input:-webkit-autofill:active{ - -webkit-box-shadow: 0 0 0 30px white inset !important; -} - } -} - -.ant-upload-select{ - width: 100%; -} -.Checkboxs{ - padding: 4%; -} -.SearchField{ - button{ - background: var(--primary); - } -} -.text{ - color: var(--text); -} - -input:disabled{ - color: var(--text) !important; -} - - -.error{ - color: red; -} \ No newline at end of file diff --git a/src/Components/Utils/TalabeeField/TalabeeField.tsx b/src/Components/Utils/TalabeeField/TalabeeField.tsx deleted file mode 100644 index 0dfe6c0..0000000 --- a/src/Components/Utils/TalabeeField/TalabeeField.tsx +++ /dev/null @@ -1,56 +0,0 @@ -import React from "react"; -import "./TalabeeField.scss"; -import { Date, Time, File, DataRange, SelectField, Default, CheckboxField } from './View'; - -export interface TalabeeFieldProps { - name: string; - type?: "text" | "Select" | "DataRange" | "Date" | "Time" | "File" | "number" | "Checkbox" | "password"; - placeholder?: string; - label?: string; - className?: string; - option?: any[]; - isMulti?: boolean; - isDisabled?: boolean; - picker?: "data" | "week" | "month" | "quarter" | "year"; - Format?: "YYYY/MM/DD" | "MM/DD" | "YYYY/MM"; - onChange?: (value: any) => void; - Group?: boolean - dir?:'ltr' | "rtl" - inputType?:String -} - -const TalabeeField = (props: TalabeeFieldProps) => { - switch (props?.type) { - case 'Select': - return ; - case "DataRange": - return ; - case "Date": - return ; - case "Time": - return