company + layout verbessert

This commit is contained in:
2026-04-12 18:52:25 +02:00
parent 90a15b7165
commit a8e155f5d5
4 changed files with 667 additions and 32 deletions

View File

@@ -14,6 +14,8 @@ import EditAttractionPage from './pages/EditAttractionPage';
import AttractionPage from './pages/AttractionPage';
import HomePage from './pages/HomePage';
import EditOrganizationPage from "./pages/EditOrganizationPage.jsx";
import CompanyPage from "./pages/CompanyPage.jsx";
import EditCompanyPage from "./pages/EditCompanyPage.jsx";
const theme = createTheme({
palette: {
@@ -81,6 +83,14 @@ export default function App() {
</PrivateRoute>
}
/>
<Route
path="companies"
element={
<PrivateRoute allowedRoles={['ADMIN', 'SITE_OWNER']}>
<CompanyPage />
</PrivateRoute>
}
/>
<Route
path="attractions/:id/edit"
element={
@@ -89,6 +99,14 @@ export default function App() {
</PrivateRoute>
}
/>
<Route
path="companies/:id/edit"
element={
<PrivateRoute allowedRoles={['ADMIN', 'SITE_OWNER']}>
<EditCompanyPage/>
</PrivateRoute>
}
/>
<Route
path="organizations/:id/edit"
element={