Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

minor fixes

Blue Mouseaf0a23b0a725
diff --git a/src/App.js b/src/App.js
index 87a6b47a0..27f86a80d 100644
--- a/src/App.js
+++ b/src/App.js
@@ -28,6 +28,7 @@ import { authActions } from 'redux/actions/auth'
import { errorsActions } from 'redux/actions/errors'
import { alertsActions } from 'redux/actions/alerts'
+const ProtectedMain = notAuthenticated(MainPage)
const ProtectedSignIn = notAuthenticated(SignIn)
const ProtectedSignUp = notAuthenticated(SignUp)
const ProtectedForgotPassword = notAuthenticated(ForgotPassword)
@@ -38,7 +39,7 @@ const ProtectedProjectSettings = isAuthenticated(ProjectSettings)
const ProtectedViewProject = isAuthenticated(ViewProject)
const minimalFooterPages = [
- '/projects', '/dashboard', '/settings'
+ '/projects', '/dashboard', '/settings',
]
const App = () => {
@@ -93,7 +94,7 @@ const App = () => {
<>
<Header authenticated={authenticated} />
<Switch>
- <Route path={routes.main} component={MainPage} exact />
+ <Route path={routes.main} component={ProtectedMain} exact />
<Route path={routes.signin} component={ProtectedSignIn} exact />
<Route path={routes.signup} component={ProtectedSignUp} exact />
<Route path={routes.dashboard} component={ProtectedDashboard} exact />
diff --git a/src/pages/Dashboard/Dashboard.jsx b/src/pages/Dashboard/Dashboard.jsx
index 89fe205ea..a9974872c 100644
--- a/src/pages/Dashboard/Dashboard.jsx
+++ b/src/pages/Dashboard/Dashboard.jsx
@@ -95,11 +95,6 @@ const NoProjects = () => (
<p className='text-center'>
Create a new project here to start using our service
</p>
- <p className='text-center'>
- <Link to={routes.new_project} className='btn btn-primary h-100 mt-3'>
- Create a project
- </Link>
- </p>
</div>
)