Skip to content

Form #402

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 8 commits into from
Closed

Form #402

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"license": "MIT",
"author": "The CoreUI Team (https://github.com/orgs/coreui/people)",
"scripts": {
"build": "react-scripts build",
"build": "DISABLE_ESLINT_PLUGIN=true react-scripts build",
"eject": "react-scripts eject",
"lint": "eslint \"src/**/*.js\"",
"start": "react-scripts start",
Expand All @@ -29,9 +29,11 @@
"@coreui/react": "^4.6.0",
"@coreui/react-chartjs": "^2.1.2",
"@coreui/utils": "^2.0.1",
"axios": "^1.3.5",
"chart.js": "^3.9.1",
"classnames": "^2.3.2",
"core-js": "^3.29.0",
"js-cookie": "^3.0.1",
"prop-types": "^15.8.1",
"react": "^18.2.0",
"react-app-polyfill": "^3.0.0",
Expand Down
7 changes: 4 additions & 3 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { Component, Suspense } from 'react'
import { HashRouter, Route, Routes } from 'react-router-dom'
import { Route, Routes, BrowserRouter } from 'react-router-dom'
import './scss/style.scss'
import './checkToken'

const loading = (
<div className="pt-3 text-center">
Expand All @@ -20,7 +21,7 @@ const Page500 = React.lazy(() => import('./views/pages/page500/Page500'))
class App extends Component {
render() {
return (
<HashRouter>
<BrowserRouter>
<Suspense fallback={loading}>
<Routes>
<Route exact path="/login" name="Login Page" element={<Login />} />
Expand All @@ -30,7 +31,7 @@ class App extends Component {
<Route path="*" name="Home" element={<DefaultLayout />} />
</Routes>
</Suspense>
</HashRouter>
</BrowserRouter>
)
}
}
Expand Down
Loading