Feature/library show number of mangas in category (#269)
* Pass optional browser tab only title Makes it possible to have a different title for the "NavBar" and the browser tab * Show number of items in category and library --------- Co-authored-by: schroda <github@dasch.simplelogin.com>
This commit is contained in:
@@ -29,6 +29,8 @@ export const DefaultLibraryOptions: LibraryOptions = {
|
||||
sortDesc: undefined,
|
||||
sorts: undefined,
|
||||
unread: undefined,
|
||||
|
||||
showTabSize: false,
|
||||
};
|
||||
|
||||
const LibraryOptionsContext = React.createContext<ContextType>({
|
||||
|
||||
@@ -14,8 +14,8 @@ type ContextType = {
|
||||
setDefaultBackTo: React.Dispatch<React.SetStateAction<string | undefined>>;
|
||||
|
||||
// AppBar title
|
||||
title: string;
|
||||
setTitle: (title: string) => void;
|
||||
title: string | React.ReactNode;
|
||||
setTitle: (title: ContextType['title'], browserTitle?: string) => void;
|
||||
|
||||
// AppBar action buttons
|
||||
action: any;
|
||||
|
||||
Reference in New Issue
Block a user