Removed unnecessary code snippets in Pokedex.stories.tsx
parent
bf3cbe886b
commit
99fd0577fd
|
@ -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) => {
|
||||||
|
|
Loading…
Reference in New Issue