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 { interface MockStoreProps {
@ -99,11 +74,7 @@ const mockSlice = (pokedexState: PokedexStateProps) => {
return createSlice({ return createSlice({
name: 'pokedex', name: 'pokedex',
initialState: pokedexState, initialState: pokedexState,
reducers: { reducers: {},
setIsLoadingPokemons: (state, action) => {
state.isLoadingPokemons = action.payload;
},
},
}); });
}; };
const mockStore = (pokedexState: PokedexStateProps) => { const mockStore = (pokedexState: PokedexStateProps) => {