[ESLint] Prefer named exports (#427)
This commit is contained in:
@@ -8,7 +8,6 @@
|
||||
|
||||
import { styled } from '@mui/material';
|
||||
|
||||
// eslint-disable-next-line import/prefer-default-export
|
||||
export const CheckboxContainer = styled('div')({
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
|
||||
@@ -12,7 +12,6 @@ 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();
|
||||
|
||||
|
||||
@@ -17,11 +17,11 @@ import DialogContentText from '@mui/material/DialogContentText';
|
||||
import DialogActions from '@mui/material/DialogActions';
|
||||
import Button from '@mui/material/Button';
|
||||
import { t as translate } from 'i18next';
|
||||
import ThreeStateCheckboxInput from '@/components/atoms/ThreeStateCheckboxInput.tsx';
|
||||
import makeToast from '@/components/util/Toast.tsx';
|
||||
import { ThreeStateCheckboxInput } from '@/components/atoms/ThreeStateCheckboxInput.tsx';
|
||||
import { makeToast } from '@/components/util/Toast.tsx';
|
||||
import { IncludeInUpdate } from '@/lib/graphql/generated/graphql.ts';
|
||||
import { TCategory } from '@/typings.ts';
|
||||
import requestManager from '@/lib/requests/RequestManager.ts';
|
||||
import { requestManager } from '@/lib/requests/RequestManager.ts';
|
||||
import { CheckboxContainer } from '@/components/globalUpdate/CheckboxContainer.ts';
|
||||
|
||||
const booleanToIncludeInStatus = (status: boolean | null | undefined): IncludeInUpdate => {
|
||||
@@ -78,7 +78,6 @@ const getCategoryUpdateInfo = (
|
||||
return categories.map((category) => category.name).join(', ');
|
||||
};
|
||||
|
||||
// eslint-disable-next-line import/prefer-default-export
|
||||
export const GlobalUpdateSettingsCategories = () => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
|
||||
@@ -14,10 +14,10 @@ import ListItemText from '@mui/material/ListItemText';
|
||||
import { Button, Dialog, DialogActions, DialogContent, DialogTitle } from '@mui/material';
|
||||
import { GetServerSettingsQuery } from '@/lib/graphql/generated/graphql.ts';
|
||||
import { TranslationKey } from '@/typings.ts';
|
||||
import requestManager from '@/lib/requests/RequestManager.ts';
|
||||
import makeToast from '@/components/util/Toast.tsx';
|
||||
import { requestManager } from '@/lib/requests/RequestManager.ts';
|
||||
import { makeToast } from '@/components/util/Toast.tsx';
|
||||
import { CheckboxContainer } from '@/components/globalUpdate/CheckboxContainer';
|
||||
import CheckboxInput from '@/components/atoms/CheckboxInput';
|
||||
import { CheckboxInput } from '@/components/atoms/CheckboxInput';
|
||||
|
||||
type GlobalUpdateSkipEntriesSettings = Pick<
|
||||
GetServerSettingsQuery['settings'],
|
||||
@@ -69,7 +69,6 @@ const extractSkipEntriesSettings = (
|
||||
excludeUnreadChapters: serverSettings.excludeUnreadChapters,
|
||||
});
|
||||
|
||||
// eslint-disable-next-line import/prefer-default-export
|
||||
export const GlobalUpdateSettingsEntries = () => {
|
||||
const { t } = useTranslation();
|
||||
const { data, loading, error: requestError } = requestManager.useGetServerSettings();
|
||||
|
||||
Reference in New Issue
Block a user