Removed unnecessary code snippets in Pokedex.stories.tsx

develop
Jason Zhu 2023-05-20 14:29:58 +10:00
parent bf3cbe886b
commit 99fd0577fd
1 changed files with 1 additions and 30 deletions

View File

@ -62,31 +62,6 @@ const MockedState = {
},
],
},
filter: {
regionOptions: [],
typeOptions: [],
sortOptions: [],
selectedRegion: '',
selectedType: '',
selectedSort: '',
searchInput: '',
},
pokeApi: {
queries: {},
mutations: {},
provided: {},
subscriptions: {},
config: {
online: true,
focused: true,
middlewareRegistered: false,
refetchOnFocus: false,
refetchOnReconnect: false,
refetchOnMountOrArgChange: false,
keepUnusedDataFor: 60,
reducerPath: 'pokeApi',
},
},
};
interface MockStoreProps {
@ -99,11 +74,7 @@ const mockSlice = (pokedexState: PokedexStateProps) => {
return createSlice({
name: 'pokedex',
initialState: pokedexState,
reducers: {
setIsLoadingPokemons: (state, action) => {
state.isLoadingPokemons = action.payload;
},
},
reducers: {},
});
};
const mockStore = (pokedexState: PokedexStateProps) => {