Feature/browse source manga long press remove add manga from library (#710)
* Extract CategorySelect usage into hook * Extract logic to change manga in library state into hook * Change manga in library state on long press when browsing source
This commit is contained in:
@@ -21,6 +21,8 @@ declare module '@mui/material/styles/createPalette' {
|
||||
type DefaultMuiPalette = Omit<MuiPalette, 'custom'>;
|
||||
type DefaultMuiTheme = Omit<Theme, 'palette'> & { palette: DefaultMuiPalette };
|
||||
|
||||
let theme: Theme;
|
||||
export const getCurrentTheme = () => theme;
|
||||
export const createTheme = (dark?: boolean) => {
|
||||
const baseTheme: DefaultMuiTheme = createMuiTheme({
|
||||
palette: {
|
||||
@@ -60,5 +62,7 @@ export const createTheme = (dark?: boolean) => {
|
||||
baseTheme,
|
||||
);
|
||||
|
||||
theme = suwayomiTheme;
|
||||
|
||||
return suwayomiTheme;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user