[ESLint] Prefer named exports (#427)
This commit is contained in:
42
src/App.tsx
42
src/App.tsx
@@ -12,33 +12,33 @@ import React from 'react';
|
||||
import { Navigate, Route, Routes } from 'react-router-dom';
|
||||
import { loadErrorMessages, loadDevMessages } from '@apollo/client/dev';
|
||||
import { __DEV__ } from '@apollo/client/utilities/globals';
|
||||
import AppContext from '@/components/context/AppContext';
|
||||
import Browse from '@/screens/Browse';
|
||||
import DownloadQueue from '@/screens/DownloadQueue';
|
||||
import Extensions from '@/screens/Extensions';
|
||||
import Library from '@/screens/Library';
|
||||
import Manga from '@/screens/Manga';
|
||||
import Reader from '@/screens/Reader';
|
||||
import SearchAll from '@/screens/SearchAll';
|
||||
import Settings from '@/screens/Settings';
|
||||
import About from '@/screens/settings/About';
|
||||
import Backup from '@/screens/settings/Backup';
|
||||
import Categories from '@/screens/settings/Categories';
|
||||
import DefaultReaderSettings from '@/screens/settings/DefaultReaderSettings';
|
||||
import SourceConfigure from '@/screens/SourceConfigure';
|
||||
import SourceMangas from '@/screens/SourceMangas';
|
||||
import Sources from '@/screens/Sources';
|
||||
import Updates from '@/screens/Updates';
|
||||
import { AppContext } from '@/components/context/AppContext';
|
||||
import { Browse } from '@/screens/Browse';
|
||||
import { DownloadQueue } from '@/screens/DownloadQueue';
|
||||
import { Extensions } from '@/screens/Extensions';
|
||||
import { Library } from '@/screens/Library';
|
||||
import { Manga } from '@/screens/Manga';
|
||||
import { Reader } from '@/screens/Reader';
|
||||
import { SearchAll } from '@/screens/SearchAll';
|
||||
import { Settings } from '@/screens/Settings';
|
||||
import { About } from '@/screens/settings/About';
|
||||
import { Backup } from '@/screens/settings/Backup';
|
||||
import { Categories } from '@/screens/settings/Categories';
|
||||
import { DefaultReaderSettings } from '@/screens/settings/DefaultReaderSettings';
|
||||
import { SourceConfigure } from '@/screens/SourceConfigure';
|
||||
import { SourceMangas } from '@/screens/SourceMangas';
|
||||
import { Sources } from '@/screens/Sources';
|
||||
import { Updates } from '@/screens/Updates';
|
||||
import '@/i18n';
|
||||
import LibrarySettings from '@/screens/settings/LibrarySettings';
|
||||
import DefaultNavBar from '@/components/navbar/DefaultNavBar';
|
||||
import { LibrarySettings } from '@/screens/settings/LibrarySettings';
|
||||
import { DefaultNavBar } from '@/components/navbar/DefaultNavBar';
|
||||
|
||||
if (__DEV__) {
|
||||
// Adds messages only in a dev environment
|
||||
loadDevMessages();
|
||||
loadErrorMessages();
|
||||
}
|
||||
const App: React.FC = () => (
|
||||
export const App: React.FC = () => (
|
||||
<AppContext>
|
||||
<CssBaseline />
|
||||
<DefaultNavBar />
|
||||
@@ -91,5 +91,3 @@ const App: React.FC = () => (
|
||||
</Routes>
|
||||
</AppContext>
|
||||
);
|
||||
|
||||
export default App;
|
||||
|
||||
Reference in New Issue
Block a user