Merge branch 'collapse-icon' of WrenchBoard/Users-Wrench into master

This commit is contained in:
2023-07-17 19:57:36 +00:00
committed by Gogs
4 changed files with 10 additions and 22 deletions
@@ -1,4 +1,6 @@
import React from "react";
import localImgLoad from "../../../lib/localImgLoad";
export default function ProfileInfo({
profileImg,
@@ -12,7 +14,7 @@ export default function ProfileInfo({
<div className="flex justify-center">
<div className="w-full relative">
<img
src={profileImg}
src={localImgLoad(`images/icons/${accountDetails.banner}`)}
alt=""
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
+4 -2
View File
@@ -65,8 +65,8 @@ export default function Resources(props) {
if(name == 'blog'){
return blogItems?.blogdata?.length
}else if(name == 'onsale'){
// return onSaleProducts?.length
return null
return onSaleProducts?.length
// return null
}else if(name == 'owned'){
return ownProducts?.length
}else if(name == 'created'){
@@ -89,6 +89,7 @@ export default function Resources(props) {
>
{tabValue.content}
</span>
{tabValue.name != 'onsale' &&
<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 ${
isActive
@@ -98,6 +99,7 @@ export default function Resources(props) {
>
{countNumber(tabValue.name)}
</span>
}
</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>
<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">
<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 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">