Skip to content

Commit 7e11a1a

Browse files
Part 5 : Setup Redux of Products/ JSON-server/ Products Filters
1 parent e996420 commit 7e11a1a

File tree

12 files changed

+3999
-152
lines changed

12 files changed

+3999
-152
lines changed

data.json

+1,837
Large diffs are not rendered by default.

src/app/store.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { configureStore } from '@reduxjs/toolkit';
2-
import counterReducer from '../features/counter/counterSlice';
2+
import productReducer from '../features/product/productSlice';
33

44
export const store = configureStore({
55
reducer: {
6-
counter: counterReducer,
6+
product: productReducer,
77
},
88
});

src/features/navbar/Navbar.js

+2
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,13 @@ function NavBar({ children }) {
3838
<div className="flex h-16 items-center justify-between">
3939
<div className="flex items-center">
4040
<div className="flex-shrink-0">
41+
<Link to="/">
4142
<img
4243
className="h-8 w-8"
4344
src="https://tailwindui.com/img/logos/mark.svg?color=indigo&shade=500"
4445
alt="Your Company"
4546
/>
47+
</Link>
4648
</div>
4749
<div className="hidden md:block">
4850
<div className="ml-10 flex items-baseline space-x-4">

src/features/product-list/productAPI.js

-8
This file was deleted.

src/features/product-list/productSlice.js

-42
This file was deleted.

0 commit comments

Comments
 (0)