Commit 5dd1ee72 authored by Filip Hujer's avatar Filip Hujer Committed by cizek
Browse files

Add button to event to list stands

parent 7929655d
...@@ -42,9 +42,9 @@ export const AppRoutes = () => { ...@@ -42,9 +42,9 @@ export const AppRoutes = () => {
<Route path="/events/:id/edit" element={<CreateUpdateEvent />} /> <Route path="/events/:id/edit" element={<CreateUpdateEvent />} />
<Route element={<ProtectedRoute />}> <Route element={<ProtectedRoute />}>
<Route path="/locations" element={<Locations />} /> <Route path="/locations" element={<Locations />} />
<Route path="/stands/list/events/:id" element={<EventStands />} />
</Route> </Route>
<Route path="*" element={<NotFound />} /> <Route path="*" element={<NotFound />} />
<Route path="/stands/list/events/:id" element={<EventStands />} />
<Route <Route
path="/stand-reservation/:id" path="/stand-reservation/:id"
element={<StandReservation />} element={<StandReservation />}
......
...@@ -62,7 +62,7 @@ export const EventStandActionsCell = ({ row }: TableCellProps<EventStand>) => { ...@@ -62,7 +62,7 @@ export const EventStandActionsCell = ({ row }: TableCellProps<EventStand>) => {
variant: "info", variant: "info",
}); });
}, },
prompt: "Are you sure you want to delete this stahd?", prompt: "Are you sure you want to delete this stand?",
}, },
title: "Delete stand", title: "Delete stand",
}); });
......
...@@ -248,6 +248,12 @@ export const Events = () => { ...@@ -248,6 +248,12 @@ export const Events = () => {
<td> <td>
{user.userRole == "MANAGER" && ( {user.userRole == "MANAGER" && (
<Group position="center"> <Group position="center">
<ActionIcon
variant="hover"
onClick={() => navigate(`/stands/list/events/${row.id}`)}
>
<BuildingStore color="black" />
</ActionIcon>
<ActionIcon <ActionIcon
variant="hover" variant="hover"
onClick={() => navigate(`/events/${row.id}/edit`)} onClick={() => navigate(`/events/${row.id}/edit`)}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment