Feature/library global update exclude manga with state (#281)

* Extract global update settings

* Add option to exclude mangas with specific state from global update
This commit is contained in:
schroda
2023-10-27 23:39:05 +02:00
committed by GitHub
parent c8f02b3b8c
commit 68e7b4b16d
9 changed files with 484 additions and 240 deletions

View File

@@ -0,0 +1,31 @@
/*
* Copyright (C) Contributors to the Suwayomi project
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
import List from '@mui/material/List';
import ListSubheader from '@mui/material/ListSubheader';
import { useTranslation } from 'react-i18next';
import { GlobalUpdateSettingsCategories } from '@/components/globalUpdate/GlobalUpdateSettingsCategories.tsx';
import { GlobalUpdateSettingsEntries } from '@/components/globalUpdate/GlobalUpdateSettingsEntries.tsx';
// eslint-disable-next-line import/prefer-default-export
export const GlobalUpdateSettings = () => {
const { t } = useTranslation();
return (
<List
subheader={
<ListSubheader component="div" id="global-update-settings">
{t('library.settings.global_update.title')}
</ListSubheader>
}
>
<GlobalUpdateSettingsEntries />
<GlobalUpdateSettingsCategories />
</List>
);
};