cleanup (eslint): cleanup as per eslint rules

This commit is contained in:
Mickael Kerjean
2020-12-22 19:48:24 +11:00
parent d1a6cc6921
commit ef8fe6adb5
35 changed files with 385 additions and 396 deletions

View File

@ -1,8 +1,8 @@
import React from 'react';
import { BrowserRouter, Route, IndexRoute, Switch } from 'react-router-dom';
import { NotFoundPage, ConnectPage, HomePage, SharePage, LogoutPage, FilesPage, ViewerPage } from './pages/';
import { URL_HOME, URL_FILES, URL_VIEWER, URL_LOGIN, URL_LOGOUT } from './helpers/';
import { Bundle, ModalPrompt, ModalAlert, ModalConfirm, Notification, Audio, Video, UploadQueue } from './components/';
import React from "react";
import { BrowserRouter, Route, Switch } from "react-router-dom";
import { NotFoundPage, ConnectPage, HomePage, SharePage, LogoutPage, FilesPage, ViewerPage } from "./pages/";
import { URL_HOME, URL_FILES, URL_VIEWER, URL_LOGIN, URL_LOGOUT, URL_ADMIN, URL_SHARE } from "./helpers/";
import { Bundle, ModalPrompt, ModalAlert, ModalConfirm, Notification, UploadQueue } from "./components/";
const AdminPage = (props) => (
<Bundle loader={import(/* webpackChunkName: "admin" */"./pages/adminpage")} symbol="AdminPage">
@ -13,16 +13,16 @@ const AdminPage = (props) => (
export default class AppRouter extends React.Component {
render() {
return (
<div style={{height: '100%'}}>
<div style={{height: "100%"}}>
<BrowserRouter>
<Switch>
<Route exact path="/" component={HomePage} />
<Route path="/s/:id*" component={SharePage} />
<Route path="/login" component={ConnectPage} />
<Route path="/files/:path*" component={FilesPage} />
<Route path="/view/:path*" component={ViewerPage} />
<Route path="/logout" component={LogoutPage} />
<Route path="/admin" component={AdminPage} />
<Route exact path={URL_HOME} component={HomePage} />
<Route path={`${URL_SHARE}/:id*`} component={SharePage} />
<Route path={URL_LOGIN} component={ConnectPage} />
<Route path={`${URL_FILES}/:path*`} component={FilesPage} />
<Route path={`${URL_VIEWER}/:path*`} component={ViewerPage} />
<Route path={URL_LOGOUT} component={LogoutPage} />
<Route path={URL_ADMIN} component={AdminPage} />
<Route component={NotFoundPage} />
</Switch>
</BrowserRouter>