diff --git a/src/components/Cards/AvailableJobsCard.jsx b/src/components/Cards/AvailableJobsCard.jsx index 25f0a66..5b795b3 100644 --- a/src/components/Cards/AvailableJobsCard.jsx +++ b/src/components/Cards/AvailableJobsCard.jsx @@ -3,11 +3,13 @@ import { Link, useNavigate } from "react-router-dom"; import MarketPopUp from "../MarketPlace/PopUp/MarketPopUp"; import usersService from "../../services/UsersService"; import { PriceFormatter } from "../Helpers/PriceFormatter"; +import dataImage2 from "../../assets/images/data-table-user-2.png"; export default function AvailableJobsCard({ className, datas, hidden = false, + contentDisplay }) { //debugger; const [marketPopUp, setMarketPopUp] = useState({ show: false, data: {} }); @@ -49,6 +51,7 @@ export default function AvailableJobsCard({ }, []); return ( <> + {contentDisplay == 'grid' ?
+ : +
+
+
+ data +
+
+ +

+ {datas?.title} +

+ + +
+

{datas?.description}

+
+ + {/*
+
+
+

Added

+

+ {datas.offer_added} +

+
+
+
+
+
+

+ Expires +

+

+ {datas.expire} +

+
+
+
*/} +
+

+ Price: {thePrice} +

+

+ Duration:{" "} + + {" "} + {datas?.timeline_days} day(s) + +

+

+ Code:{" "} + + {" "} + {datas?.offer_code} + +

+
+
+
+
+ +
+
+ } {marketPopUp.show && ( @@ -483,6 +487,12 @@ export default function Icons({ name }) { c0.3,0,0.5-0.1,0.7-0.3l5.7-5.7c0,0,0,0,0,0C15.9,12.3,15.9,11.7,15.5,11.3z" > + ) : name === "atm-card" ? ( + card + ) : name === "visa-card" ? ( + card + ) : name === "master-card" ? ( + card ) : ( "" )} diff --git a/src/components/Helpers/Inputs/InputCom/index.jsx b/src/components/Helpers/Inputs/InputCom/index.jsx index 43dc849..7a7685c 100644 --- a/src/components/Helpers/Inputs/InputCom/index.jsx +++ b/src/components/Helpers/Inputs/InputCom/index.jsx @@ -95,8 +95,12 @@ export default function InputCom({ dir={direction} /> {iconName && ( -
- +
+ { + iconName.split(' ').map((item, index)=>( + + )) + }
)} {passIcon && ( diff --git a/src/components/MarketPlace/MainSection.jsx b/src/components/MarketPlace/MainSection.jsx index 018c4b9..4f22f3a 100644 --- a/src/components/MarketPlace/MainSection.jsx +++ b/src/components/MarketPlace/MainSection.jsx @@ -1,6 +1,8 @@ import React, { useEffect, useMemo, useState } from "react"; import DataIteration from "../Helpers/DataIteration"; import AvailableJobsCard from "../Cards/AvailableJobsCard"; +import ListView from '../../assets/images/list-view.png' +import GridView from '../../assets/images/grid-view.svg' export default function MainSection({ className, @@ -14,6 +16,8 @@ export default function MainSection({ ); const [tab, setTab] = useState(Object.keys(marketCategories)[0]); + let [contentDisplay, setContentDisplay] = useState('grid') // STATE TO HOLD LIST VIEW STYLE + // Convert to array in order to map const mappedArray = Object.entries(marketCategories).map(([key, value]) => { return { key, value }; @@ -37,6 +41,18 @@ export default function MainSection({ return (
+ {/* contentDisplay toggler */} +
+
+ setContentDisplay((prev)=>prev=='grid'? 'list' : 'grid')} + src={contentDisplay=='grid'? ListView : GridView} + className="w-full h-full cursor-pointer" alt="view" + /> +
+
+ {/* end of contentDisplay toggler */}
@@ -55,16 +71,26 @@ export default function MainSection({ ))}
+ {/* contentDisplay toggler */} + {/*
+ setContentDisplay((prev)=>prev=='grid'? 'list' : 'grid')} + src={contentDisplay=='grid'? ListView : GridView} + className="w-full h-full cursor-pointer" alt="view" + /> +
*/} + {/* end of contentDisplay toggler */}
-
+
{({ datas }) => ( - + )}
diff --git a/src/components/MyWallet/AddFundDollars.jsx b/src/components/MyWallet/AddFundDollars.jsx index 7a5a903..bc2ab23 100644 --- a/src/components/MyWallet/AddFundDollars.jsx +++ b/src/components/MyWallet/AddFundDollars.jsx @@ -230,7 +230,7 @@ function AddFundDollars(props) {