Skip to content

Commit

Permalink
feat: Update CategoriesSection to fetch products and categories on co…
Browse files Browse the repository at this point in the history
…mponent mount

- Add useEffect hook to CategoriesSection component to fetch products and categories on component mount
- Update categories.tsx to import fetchProducts and fetchCategories from ProductSlice and categorySlice respectively
- Remove duplicate import statement for useAppSelector from '@/app/hooks'
  • Loading branch information
niyobern committed Jun 25, 2024
1 parent 012642a commit dd65c98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function Home() {
return (
<main className=" relative w-full h-auto p-2 bg-violeteBg lg:p-10 md:p-10">
<div>
{/* <HelloSection /> */}
<HelloSection />
<CategoriesSection />
</div>
</main>
Expand Down

0 comments on commit dd65c98

Please sign in to comment.