Merge branch 'collapse-icon' of WrenchBoard/Users-Wrench into master
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
|
import localImgLoad from "../../../lib/localImgLoad";
|
||||||
|
|
||||||
|
|
||||||
export default function ProfileInfo({
|
export default function ProfileInfo({
|
||||||
profileImg,
|
profileImg,
|
||||||
@@ -12,7 +14,7 @@ export default function ProfileInfo({
|
|||||||
<div className="flex justify-center">
|
<div className="flex justify-center">
|
||||||
<div className="w-full relative">
|
<div className="w-full relative">
|
||||||
<img
|
<img
|
||||||
src={profileImg}
|
src={localImgLoad(`images/icons/${accountDetails.banner}`)}
|
||||||
alt=""
|
alt=""
|
||||||
className="sm:w-[180px] sm:h-[180px] w-[120px] h-[120px] rounded-full overflow-hidden object-cover"
|
className="sm:w-[180px] sm:h-[180px] w-[120px] h-[120px] rounded-full overflow-hidden object-cover"
|
||||||
/>
|
/>
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -65,8 +65,8 @@ export default function Resources(props) {
|
|||||||
if(name == 'blog'){
|
if(name == 'blog'){
|
||||||
return blogItems?.blogdata?.length
|
return blogItems?.blogdata?.length
|
||||||
}else if(name == 'onsale'){
|
}else if(name == 'onsale'){
|
||||||
// return onSaleProducts?.length
|
return onSaleProducts?.length
|
||||||
return null
|
// return null
|
||||||
}else if(name == 'owned'){
|
}else if(name == 'owned'){
|
||||||
return ownProducts?.length
|
return ownProducts?.length
|
||||||
}else if(name == 'created'){
|
}else if(name == 'created'){
|
||||||
@@ -89,6 +89,7 @@ export default function Resources(props) {
|
|||||||
>
|
>
|
||||||
{tabValue.content}
|
{tabValue.content}
|
||||||
</span>
|
</span>
|
||||||
|
{tabValue.name != 'onsale' &&
|
||||||
<span
|
<span
|
||||||
className={`w-5 h-5 group-hover:bg-pink group-hover:text-white text-[10px] rounded-full absolute -top-2 -right-5 flex justify-center items-center ${
|
className={`w-5 h-5 group-hover:bg-pink group-hover:text-white text-[10px] rounded-full absolute -top-2 -right-5 flex justify-center items-center ${
|
||||||
isActive
|
isActive
|
||||||
@@ -98,6 +99,7 @@ export default function Resources(props) {
|
|||||||
>
|
>
|
||||||
{countNumber(tabValue.name)}
|
{countNumber(tabValue.name)}
|
||||||
</span>
|
</span>
|
||||||
|
}
|
||||||
</li>
|
</li>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ export default function QuestionsTab({ className, products }) {
|
|||||||
<h1 className="text-xl lg:text-2xl font-bold text-dark-gray dark:text-white tracking-wide">Ask our A.I</h1>
|
<h1 className="text-xl lg:text-2xl font-bold text-dark-gray dark:text-white tracking-wide">Ask our A.I</h1>
|
||||||
<div className="mt-2 lg:grid grid-cols-2 gap-2 h-full lg:h-[500px]">
|
<div className="mt-2 lg:grid grid-cols-2 gap-2 h-full lg:h-[500px]">
|
||||||
<div className="h-full mb-5 lg:mb-0">
|
<div className="h-full mb-5 lg:mb-0">
|
||||||
<img className="w-full h-full" src={localImgLoad(`images/resources-ask.jpg`)} alt='AI' />
|
<img className="w-full h-full rounded-2xl" src={localImgLoad(`images/resources-ask.jpg`)} alt='AI' />
|
||||||
</div>
|
</div>
|
||||||
<div className="p-8 bg-white rounded-2xl h-full">
|
<div className="p-8 bg-white rounded-2xl h-full">
|
||||||
<div className="input-wrapper border border-[#f5f8fa] dark:border-[#5e6278] w-full rounded-full h-[42px] overflow-hidden relative font-medium leading-6 bg-clip-padding text-[#5e6278] dark:text-gray-100 bg-[#f5f8fa] dark:bg-[#5e6278] text-base">
|
<div className="input-wrapper border border-[#f5f8fa] dark:border-[#5e6278] w-full rounded-full h-[42px] overflow-hidden relative font-medium leading-6 bg-clip-padding text-[#5e6278] dark:text-gray-100 bg-[#f5f8fa] dark:bg-[#5e6278] text-base">
|
||||||
|
|||||||
Reference in New Issue
Block a user