@mdguggenbichler/slugbase-core 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/frontend/src/App.tsx +8 -4
- package/package.json +1 -1
package/frontend/src/App.tsx
CHANGED
|
@@ -11,7 +11,7 @@ import Layout from './components/Layout';
|
|
|
11
11
|
import api from './api/client';
|
|
12
12
|
|
|
13
13
|
const Setup = lazy(() => import('./pages/Setup'));
|
|
14
|
-
|
|
14
|
+
import Login from './pages/Login';
|
|
15
15
|
const Signup = lazy(() => import('./pages/Signup'));
|
|
16
16
|
const Dashboard = lazy(() => import('./pages/Dashboard'));
|
|
17
17
|
const Bookmarks = lazy(() => import('./pages/Bookmarks'));
|
|
@@ -136,9 +136,13 @@ function ForwardingHandler() {
|
|
|
136
136
|
function AppErrorFallback() {
|
|
137
137
|
const { t } = useTranslation();
|
|
138
138
|
return (
|
|
139
|
-
<div className="min-h-screen flex flex-col items-center justify-center gap-4 p-4">
|
|
140
|
-
<p className="text-lg text-gray-700 dark:text-gray-300">{t('common.error')}</p>
|
|
141
|
-
<button
|
|
139
|
+
<div className="min-h-screen flex flex-col items-center justify-center gap-4 p-4" role="alert">
|
|
140
|
+
<p className="text-lg text-gray-700 dark:text-gray-300 text-center">{t('common.error')}</p>
|
|
141
|
+
<button
|
|
142
|
+
type="button"
|
|
143
|
+
onClick={() => window.location.reload()}
|
|
144
|
+
className="px-4 py-2 rounded-md bg-primary text-primary-foreground hover:opacity-90"
|
|
145
|
+
>
|
|
142
146
|
{t('common.reload')}
|
|
143
147
|
</button>
|
|
144
148
|
</div>
|