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 = () => {
<Route path="/events/:id/edit" element={<CreateUpdateEvent />} />
<Route element={<ProtectedRoute />}>
<Route path="/locations" element={<Locations />} />
<Route path="/stands/list/events/:id" element={<EventStands />} />
</Route>
<Route path="*" element={<NotFound />} />
<Route path="/stands/list/events/:id" element={<EventStands />} />
<Route
path="/stand-reservation/:id"
element={<StandReservation />}
......
......@@ -62,7 +62,7 @@ export const EventStandActionsCell = ({ row }: TableCellProps<EventStand>) => {
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",
});
......
......@@ -248,6 +248,12 @@ export const Events = () => {
<td>
{user.userRole == "MANAGER" && (
<Group position="center">
<ActionIcon
variant="hover"
onClick={() => navigate(`/stands/list/events/${row.id}`)}
>
<BuildingStore color="black" />
</ActionIcon>
<ActionIcon
variant="hover"
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