feat(web): persist releases incognito state (#2042)

* refactor(web): persist incognito state

* feat: merge incognito state into SettingsContext

* feat: merge incognito state into SettingsContext
This commit is contained in:
soup 2025-05-04 19:36:39 +02:00 committed by GitHub
parent ce4170e5ee
commit 24648e45f7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 124 additions and 71 deletions

View file

@ -12,6 +12,7 @@ interface SettingsType {
scrollOnNewLog: boolean;
indentLogLines: boolean;
hideWrappedText: boolean;
incognitoMode: boolean;
}
export type FilterListState = {
@ -42,7 +43,8 @@ const SettingsContextDefaults: SettingsType = {
darkTheme: window.matchMedia('(prefers-color-scheme: dark)').matches,
scrollOnNewLog: false,
indentLogLines: false,
hideWrappedText: false
hideWrappedText: false,
incognitoMode: false
};
const FilterListContextDefaults: FilterListState = {