Created a GridLayout enum and updated all locations to use it. (#208)

So, that we can more easily refactor the code later
This commit is contained in:
amr
2022-12-20 07:05:31 +02:00
committed by GitHub
parent 7312e92d07
commit 2e3f57677e
6 changed files with 42 additions and 26 deletions

10
src/typings.d.ts vendored
View File

@@ -280,12 +280,18 @@ type ChapterOptionsReducerAction =
type LibrarySortMode = 'sortToRead' | 'sortAlph' | 'sortID';
enum GridLayout {
Compact = 0,
Comfortable = 1,
List = 2,
}
interface LibraryOptions {
// display options
showDownloadBadge: boolean
showUnreadBadge: boolean
gridLayout: number
SourcegridLayout:number
gridLayout: GridLayout
SourcegridLayout: GridLayout
// filter options
downloaded: NullAndUndefined<boolean>