reverting changes

This commit is contained in:
Moyasee
2025-11-11 01:27:24 +02:00
parent 860030a510
commit 14eb0f8172

View File

@@ -5,12 +5,10 @@ import type { LibraryGame } from "@types";
export interface LibraryState {
value: LibraryGame[];
searchQuery: string;
}
const initialState: LibraryState = {
value: [],
searchQuery: "",
};
export const librarySlice = createSlice({
@@ -38,9 +36,6 @@ export const librarySlice = createSlice({
game.newDownloadOptionsCount = undefined;
}
},
setLibrarySearchQuery: (state, action: PayloadAction<string>) => {
state.searchQuery = action.payload;
},
},
});
@@ -48,5 +43,4 @@ export const {
setLibrary,
updateGameNewDownloadOptions,
clearNewDownloadOptions,
setLibrarySearchQuery,
} = librarySlice.actions;