From 99fd0577fdb6182c6f62902e5a5f938508802a23 Mon Sep 17 00:00:00 2001 From: Jason Zhu Date: Sat, 20 May 2023 14:29:58 +1000 Subject: [PATCH] Removed unnecessary code snippets in Pokedex.stories.tsx --- src/features/Pokedex/Pokedex.stories.tsx | 31 +----------------------- 1 file changed, 1 insertion(+), 30 deletions(-) diff --git a/src/features/Pokedex/Pokedex.stories.tsx b/src/features/Pokedex/Pokedex.stories.tsx index cc4f681..c543a78 100644 --- a/src/features/Pokedex/Pokedex.stories.tsx +++ b/src/features/Pokedex/Pokedex.stories.tsx @@ -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) => {