feat : formating code by prettier

This commit is contained in:
alij
2024-07-03 14:56:29 +03:30
parent 790ed79605
commit efa148c7ac
19 changed files with 289 additions and 84 deletions

View File

@@ -0,0 +1,23 @@
import { createSlice, PayloadAction } from "@reduxjs/toolkit";
interface categoryIdState {
id: number;
}
const initialState: categoryIdState = {
id: 0,
};
const categoryIdSlice = createSlice({
name: "categoryId",
initialState,
reducers: {
setCategoryId: (state, action: PayloadAction<number>) => {
state.id = action.payload;
},
},
});
export const { setCategoryId } = categoryIdSlice.actions;
export default categoryIdSlice.reducer;