fix: merging conflict

This commit is contained in:
Moyasee
2025-11-11 01:23:37 +02:00
parent f0e4d241f9
commit 860030a510
2 changed files with 9 additions and 1 deletions

View File

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