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:
schroda
2024-04-07 15:33:08 +02:00
committed by GitHub
parent aab3e25031
commit 29860482a6
13 changed files with 380 additions and 113 deletions

View File

@@ -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;
};