Joblist cart

This commit is contained in:
2023-06-19 21:24:57 +01:00
parent a9d982386c
commit 4d3fe6a799
4 changed files with 144 additions and 164 deletions
+2 -1
View File
@@ -9,7 +9,7 @@ export default function MainSection({
}) {
// Creating All cart..
let marketCategories = useMemo(
() => ({ All: "All", ...categories }),
() => ({ All: "All Categories", ...categories }),
[categories]
);
const [tab, setTab] = useState(marketCategories.All);
@@ -42,6 +42,7 @@ export default function MainSection({
<div className="md:flex md:space-x-8 space-x-2">
{mappedArray.map(({ key, value }) => (
<span
key={key}
onClick={() => tabHandler(key)}
className={`md:text-[18px] text-md text-dark-gray dark:text-white hover:text-pink border-b hover:border-pink font-medium cursor-pointer ${
tab === key