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:
10
src/typings.d.ts
vendored
10
src/typings.d.ts
vendored
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user