Compare commits

...

4 Commits

Author SHA1 Message Date
Ebube 5155efda1d Merge branch 'master' of into implementing-zero-state 2023-05-11 22:01:28 +01:00
CHIEFSOFT\ameye d002bee612 Balance Page 2023-05-11 16:52:02 -04:00
tokslaw 4ac4965dbe Merge branch 'add-job-page' of WrenchBoard/Users-Wrench into master 2023-05-11 20:38:32 +00:00
Ebube b0dae469d5 Implemented zero state to all listings 2023-05-10 16:33:10 +01:00
17 changed files with 128 additions and 131 deletions
+3
View File
@@ -31,5 +31,8 @@ REACT_APP_RESET_START_ERROR_TIMEOUT=3000
#NUMBER OF ITEMS PER PAGE #NUMBER OF ITEMS PER PAGE
REACT_APP_ITEM_PER_PAGE=5 REACT_APP_ITEM_PER_PAGE=5
# Empty Listings
REACT_APP_ZERO_STATE=0
#apigate.lotus.g1.wrenchboard.com:76.209.103.227 #apigate.lotus.g1.wrenchboard.com:76.209.103.227
#apigate.orion.g1.wrenchboard.com:76.209.103.227 #apigate.orion.g1.wrenchboard.com:76.209.103.227
+1 -1
View File
@@ -12,7 +12,7 @@ export default function AllBidsSection({ className, allBids = [] }) {
</div> </div>
<div className="w-full"> <div className="w-full">
<div className="grid xl:grid-cols-4 lg:grid-cols-3 md:grid-cols-2 2xl:gap-8 xl:gap-5 gap-5 mb-10"> <div className="grid xl:grid-cols-4 lg:grid-cols-3 md:grid-cols-2 2xl:gap-8 xl:gap-5 gap-5 mb-10">
<DataIteration datas={allBids} startLength={0} endLength={8}> <DataIteration datas={allBids} startLength={process.env.REACT_APP_ZERO_STATE} endLength={8}>
{({ datas }) => ( {({ datas }) => (
<div key={datas.id} className="item"> <div key={datas.id} className="item">
<ProductCardStyleOne datas={datas} /> <ProductCardStyleOne datas={datas} />
@@ -42,7 +42,7 @@ export default function CollectionTab({ className, products }) {
<div className="grid lg:grid-cols-3 sm:grid-cols-2 grid-cols-1 gap-[30px]"> <div className="grid lg:grid-cols-3 sm:grid-cols-2 grid-cols-1 gap-[30px]">
<DataIteration <DataIteration
datas={products} datas={products}
startLength={0} startLength={process.env.REACT_APP_ZERO_STATE}
endLength={products.length} endLength={products.length}
> >
{({ datas }) => ( {({ datas }) => (
@@ -42,7 +42,7 @@ export default function OnSaleTab({ className, products }) {
<div className="grid lg:grid-cols-3 sm:grid-cols-2 grid-cols-1 gap-[30px]"> <div className="grid lg:grid-cols-3 sm:grid-cols-2 grid-cols-1 gap-[30px]">
<DataIteration <DataIteration
datas={products} datas={products}
startLength={0} startLength={process.env.REACT_APP_ZERO_STATE}
endLength={products.length} endLength={products.length}
> >
{({ datas }) => ( {({ datas }) => (
@@ -42,7 +42,7 @@ export default function OwnTab({ className, products }) {
<div className="grid xl:grid-cols-4 lg:grid-cols-3 md:grid-cols-2 2xl:gap-8 xl:gap-5 gap-5 mb-10"> <div className="grid xl:grid-cols-4 lg:grid-cols-3 md:grid-cols-2 2xl:gap-8 xl:gap-5 gap-5 mb-10">
<DataIteration <DataIteration
datas={products} datas={products}
startLength={0} startLength={process.env.REACT_APP_ZERO_STATE}
endLength={products.length} endLength={products.length}
> >
{({ datas }) => ( {({ datas }) => (
@@ -42,7 +42,7 @@ export default function CollectionTab({ className, products }) {
<div className="grid lg:grid-cols-3 sm:grid-cols-2 grid-cols-1 gap-[30px]"> <div className="grid lg:grid-cols-3 sm:grid-cols-2 grid-cols-1 gap-[30px]">
<DataIteration <DataIteration
datas={products} datas={products}
startLength={0} startLength={process.env.REACT_APP_ZERO_STATE}
endLength={products.length} endLength={products.length}
> >
{({ datas }) => ( {({ datas }) => (
@@ -42,7 +42,7 @@ export default function OnSaleTab({ className, products }) {
<div className="grid lg:grid-cols-3 sm:grid-cols-2 grid-cols-1 gap-[30px]"> <div className="grid lg:grid-cols-3 sm:grid-cols-2 grid-cols-1 gap-[30px]">
<DataIteration <DataIteration
datas={products} datas={products}
startLength={0} startLength={process.env.REACT_APP_ZERO_STATE}
endLength={products.length} endLength={products.length}
> >
{({ datas }) => ( {({ datas }) => (
@@ -42,7 +42,7 @@ export default function OwnTab({ className, products }) {
<div className="grid xl:grid-cols-4 lg:grid-cols-3 md:grid-cols-2 2xl:gap-8 xl:gap-5 gap-5 mb-10"> <div className="grid xl:grid-cols-4 lg:grid-cols-3 md:grid-cols-2 2xl:gap-8 xl:gap-5 gap-5 mb-10">
<DataIteration <DataIteration
datas={products} datas={products}
startLength={0} startLength={process.env.REACT_APP_ZERO_STATE}
endLength={products.length} endLength={products.length}
> >
{({ datas }) => ( {({ datas }) => (
+3 -12
View File
@@ -64,20 +64,11 @@ export default function AvailableJobsCard({
)}) 0% 0% / cover no-repeat`, )}) 0% 0% / cover no-repeat`,
}} }}
> >
<div className="flex justify-center"> <div className="flex justify-center">{datas.description}</div>
{datas.description}
</div> </div>
</div>
</div> </div>
<div className="details-area"> <div className="details-area">
<div className="product-two-options flex justify-between mb-5 relative"> <div className="product-two-options flex justify-between mb-5 relative">
{/* <div className="status">*/} {/* <div className="status">*/}
{/* {datas.isActive && (*/} {/* {datas.isActive && (*/}
{/* <span className="text-xs px-3 py-1.5 tracking-wide rounded-full bg-gold text-white">*/} {/* <span className="text-xs px-3 py-1.5 tracking-wide rounded-full bg-gold text-white">*/}
@@ -86,7 +77,6 @@ export default function AvailableJobsCard({
{/* )}*/} {/* )}*/}
{/* </div>*/} {/* </div>*/}
{/*<div className=" review flex space-x-2">*/} {/*<div className=" review flex space-x-2">*/}
{/* <button*/} {/* <button*/}
{/* onClick={favoriteHandler}*/} {/* onClick={favoriteHandler}*/}
@@ -104,7 +94,8 @@ export default function AvailableJobsCard({
<div className="flex items-center space-x-2"> <div className="flex items-center space-x-2">
<div> <div>
<p className="font-bold text-xl tracking-wide line-clamp-1 text-dark-gray dark:text-white"> <p className="font-bold text-xl tracking-wide line-clamp-1 text-dark-gray dark:text-white">
{datas.price*0.01}{datas.currency} | {datas.timeline_days} day(s) {datas.price * 0.01}
{datas.currency} | {datas.timeline_days} day(s)
</p> </p>
<p className="text-sm text-lighter-gray"> <p className="text-sm text-lighter-gray">
( {datas.offer_code}) ( {datas.offer_code})
+1 -1
View File
@@ -95,7 +95,7 @@ export default function MainSection({ className, marketPlaceProduct }) {
<div className="grid lg:grid-cols-3 sm:grid-cols-2 gap-[30px]"> <div className="grid lg:grid-cols-3 sm:grid-cols-2 gap-[30px]">
<DataIteration <DataIteration
datas={products} datas={products}
startLength="0" startLength={process.env.REACT_APP_ZERO_STATE}
endLength={products?.length} endLength={products?.length}
> >
{({ datas }) => ( {({ datas }) => (
@@ -9,7 +9,7 @@ export default function MainSection({ collectionData, className }) {
<div className="grid xl:grid-cols-4 lg:grid-cols-3 md:grid-cols-2 2xl:gap-8 xl:gap-5 gap-5 mb-10"> <div className="grid xl:grid-cols-4 lg:grid-cols-3 md:grid-cols-2 2xl:gap-8 xl:gap-5 gap-5 mb-10">
<DataIteration <DataIteration
datas={collectionData} datas={collectionData}
startLength={0} startLength={process.env.REACT_APP_ZERO_STATE}
endLength={collectionData.length} endLength={collectionData.length}
> >
{({ datas }) => ( {({ datas }) => (
+1 -1
View File
@@ -8,7 +8,7 @@ function MainSection({ collectionData, className }) {
<div className="grid lg:grid-cols-3 sm:grid-cols-2 grid-cols-1 gap-[30px]"> <div className="grid lg:grid-cols-3 sm:grid-cols-2 grid-cols-1 gap-[30px]">
<DataIteration <DataIteration
datas={collectionData} datas={collectionData}
startLength={0} startLength={process.env.REACT_APP_ZERO_STATE}
endLength={collectionData.length} endLength={collectionData.length}
> >
{({ datas }) => ( {({ datas }) => (
+4 -1
View File
@@ -40,7 +40,10 @@ function Balance({wallet, coupon}) {
</div> </div>
<div className='w-full my-2 md:my-0 md:w-1/2 flex space-x-2 items-center justify-start md:justify-end'> <div className='w-full my-2 md:my-0 md:w-1/2 flex space-x-2 items-center justify-start md:justify-end'>
<Link to='transfer-fund' className='text-base text-white px-3 py-1 bg-purple rounded-md hover:opacity-80'>Transfer</Link> {
item.action_type != 'AC_AD_FD_ONLY' ?
<Link to='transfer-fund' className='text-base text-white px-3 py-1 bg-purple rounded-md hover:opacity-80'>Transfer</Link>:''
}
<Link to='add-fund' className='text-base text-white px-3 py-1 bg-[orange] rounded-md hover:opacity-80'>Top Up</Link> <Link to='add-fund' className='text-base text-white px-3 py-1 bg-[orange] rounded-md hover:opacity-80'>Top Up</Link>
</div> </div>
</div> </div>
+1 -1
View File
@@ -42,7 +42,7 @@ export default function CollectionTab({ className, products }) {
<div className="grid lg:grid-cols-3 sm:grid-cols-2 grid-cols-1 gap-[30px]"> <div className="grid lg:grid-cols-3 sm:grid-cols-2 grid-cols-1 gap-[30px]">
<DataIteration <DataIteration
datas={products} datas={products}
startLength={0} startLength={process.env.REACT_APP_ZERO_STATE}
endLength={products.length} endLength={products.length}
> >
{({ datas }) => ( {({ datas }) => (
+1 -1
View File
@@ -42,7 +42,7 @@ export default function OnSaleTab({ className, products }) {
<div className="grid lg:grid-cols-3 sm:grid-cols-2 grid-cols-1 gap-[30px]"> <div className="grid lg:grid-cols-3 sm:grid-cols-2 grid-cols-1 gap-[30px]">
<DataIteration <DataIteration
datas={products} datas={products}
startLength={0} startLength={process.env.REACT_APP_ZERO_STATE}
endLength={products.length} endLength={products.length}
> >
{({ datas }) => ( {({ datas }) => (
+1 -1
View File
@@ -42,7 +42,7 @@ export default function OwnTab({ className, products }) {
<div className="grid xl:grid-cols-4 lg:grid-cols-3 md:grid-cols-2 2xl:gap-8 xl:gap-5 gap-5 mb-10"> <div className="grid xl:grid-cols-4 lg:grid-cols-3 md:grid-cols-2 2xl:gap-8 xl:gap-5 gap-5 mb-10">
<DataIteration <DataIteration
datas={products} datas={products}
startLength={0} startLength={process.env.REACT_APP_ZERO_STATE}
endLength={products.length} endLength={products.length}
> >
{({ datas }) => ( {({ datas }) => (
+1 -1
View File
@@ -7,7 +7,7 @@ export default function MainSection({ products }) {
<div className="grid xl:grid-cols-4 lg:grid-cols-3 md:grid-cols-2 2xl:gap-8 xl:gap-5 gap-5 mb-6"> <div className="grid xl:grid-cols-4 lg:grid-cols-3 md:grid-cols-2 2xl:gap-8 xl:gap-5 gap-5 mb-6">
<DataIteration <DataIteration
datas={products} datas={products}
startLength={0} startLength={process.env.REACT_APP_ZERO_STATE}
endLength={products.length} endLength={products.length}
> >
{({ datas }) => ( {({ datas }) => (