mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-21 07:32:02 +00:00
fix(App): clean up unused code
This commit is contained in:
parent
90d54017c1
commit
b15ff4264e
1 changed files with 1 additions and 10 deletions
|
|
@ -5,14 +5,12 @@ const React = require('react');
|
||||||
const { useTranslation } = require('react-i18next');
|
const { useTranslation } = require('react-i18next');
|
||||||
const { Router } = require('stremio-router');
|
const { Router } = require('stremio-router');
|
||||||
const { Core, Shell, Chromecast, DragAndDrop, KeyboardShortcuts, ServicesProvider } = require('stremio/services');
|
const { Core, Shell, Chromecast, DragAndDrop, KeyboardShortcuts, ServicesProvider } = require('stremio/services');
|
||||||
const { NotFound } = require('stremio/routes');
|
|
||||||
const { FileDropProvider, PlatformProvider, ToastProvider, TooltipProvider, CONSTANTS, withCoreSuspender, useShell } = require('stremio/common');
|
const { FileDropProvider, PlatformProvider, ToastProvider, TooltipProvider, CONSTANTS, withCoreSuspender, useShell } = require('stremio/common');
|
||||||
const ServicesToaster = require('./ServicesToaster');
|
const ServicesToaster = require('./ServicesToaster');
|
||||||
const DeepLinkHandler = require('./DeepLinkHandler');
|
const DeepLinkHandler = require('./DeepLinkHandler');
|
||||||
const SearchParamsHandler = require('./SearchParamsHandler');
|
const SearchParamsHandler = require('./SearchParamsHandler');
|
||||||
const { default: UpdaterBanner } = require('./UpdaterBanner');
|
const { default: UpdaterBanner } = require('./UpdaterBanner');
|
||||||
const ErrorDialog = require('./ErrorDialog');
|
const ErrorDialog = require('./ErrorDialog');
|
||||||
const routerViewsConfig = require('./routerViewsConfig');
|
|
||||||
const styles = require('./styles');
|
const styles = require('./styles');
|
||||||
|
|
||||||
const RouterWithProtectedRoutes = withCoreSuspender(Router);
|
const RouterWithProtectedRoutes = withCoreSuspender(Router);
|
||||||
|
|
@ -20,9 +18,6 @@ const RouterWithProtectedRoutes = withCoreSuspender(Router);
|
||||||
const App = () => {
|
const App = () => {
|
||||||
const { i18n } = useTranslation();
|
const { i18n } = useTranslation();
|
||||||
const shell = useShell();
|
const shell = useShell();
|
||||||
const onPathNotMatch = React.useCallback(() => {
|
|
||||||
return NotFound;
|
|
||||||
}, []);
|
|
||||||
const services = React.useMemo(() => {
|
const services = React.useMemo(() => {
|
||||||
const core = new Core({
|
const core = new Core({
|
||||||
appVersion: process.env.VERSION,
|
appVersion: process.env.VERSION,
|
||||||
|
|
@ -200,11 +195,7 @@ const App = () => {
|
||||||
<DeepLinkHandler />
|
<DeepLinkHandler />
|
||||||
<SearchParamsHandler />
|
<SearchParamsHandler />
|
||||||
<UpdaterBanner className={styles['updater-banner-container']} />
|
<UpdaterBanner className={styles['updater-banner-container']} />
|
||||||
<RouterWithProtectedRoutes
|
<RouterWithProtectedRoutes className={styles['router']} />
|
||||||
className={styles['router']}
|
|
||||||
viewsConfig={routerViewsConfig}
|
|
||||||
onPathNotMatch={onPathNotMatch}
|
|
||||||
/>
|
|
||||||
</FileDropProvider>
|
</FileDropProvider>
|
||||||
</TooltipProvider>
|
</TooltipProvider>
|
||||||
</ToastProvider>
|
</ToastProvider>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue