Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Michal Čížek
flea-market-manager
Commits
76fe8c88
Commit
76fe8c88
authored
May 18, 2022
by
Filip Hujer
Committed by
cizek
May 18, 2022
Browse files
Fix after rebase
parent
efc20c59
Changes
4
Hide whitespace changes
Inline
Side-by-side
frontend/src/components/dialogs/upsert-event-stand-dialog/upsert-event-stand-dialog.tsx
View file @
76fe8c88
import
{
useCallback
,
useEffect
,
useMemo
,
useState
}
from
"
react
"
;
import
{
Form
,
Formik
}
from
"
formik
"
;
import
{
useMutation
,
useQueryClient
}
from
"
react-query
"
;
import
{
Button
,
Group
,
Select
,
Stack
,
Title
}
from
"
@mantine/core
"
;
import
{
Button
,
Group
,
Select
,
Stack
}
from
"
@mantine/core
"
;
import
{
DialogProps
}
from
"
context/dialog/types
"
;
import
{
useNotification
}
from
"
context/notification/notification-context
"
;
import
{
createStand
,
editStand
}
from
"
modules/event/create-event-api
"
;
import
{
createStand
,
editStand
}
from
"
modules/event/create-
update-
event-api
"
;
import
{
EventStand
,
EventStandForm
}
from
"
../../../modules/event/event-types
"
;
import
{
getStandTypes
}
from
"
../../../modules/stand-reservation/stand-reservation-api
"
;
import
{
StandType
}
from
"
../../../models/stand-type
"
;
...
...
frontend/src/modules/event/event-stands-action-cell.tsx
View file @
76fe8c88
...
...
@@ -7,7 +7,7 @@ import { useMutation, useQueryClient } from "react-query";
import
{
useNotification
}
from
"
context/notification/notification-context
"
;
import
{
useDialog
}
from
"
context/dialog/dialog-context
"
;
import
{
deleteStand
}
from
"
./create-event-api
"
;
import
{
deleteStand
}
from
"
./create-
update-
event-api
"
;
import
{
UpsertEventStandDialog
}
from
"
../../components/dialogs/upsert-event-stand-dialog/upsert-event-stand-dialog
"
;
import
{
EventStand
}
from
"
./event-types
"
;
import
{
ConfirmDialog
}
from
"
../../components/dialogs/confirm-dialog/confirm-dialog
"
;
...
...
frontend/src/modules/event/event-stands.tsx
View file @
76fe8c88
...
...
@@ -3,7 +3,7 @@ import {useQuery} from "react-query";
import
{
Container
}
from
"
@mantine/core
"
;
import
{
useNotification
}
from
"
../../context/notification/notification-context
"
;
import
{
eventStandColumns
}
from
"
./event-stands-columns
"
;
import
{
getEventStands
}
from
"
./create-event-api
"
;
import
{
getEventStands
}
from
"
./create-
update-
event-api
"
;
import
{
eventStandsActionFactory
}
from
"
./event-stands-actions
"
;
import
{
useMemo
}
from
"
react
"
;
import
{
useParams
}
from
"
react-router-dom
"
;
...
...
frontend/src/modules/events/events.tsx
View file @
76fe8c88
import
React
,
{
useCallback
,
useEffect
,
useMemo
,
useState
}
from
"
react
"
;
import
React
,
{
useCallback
,
useEffect
,
useMemo
,
useState
}
from
"
react
"
;
import
{
Table
,
ScrollArea
,
ActionIcon
,
Button
,
Center
,
Container
,
createStyles
,
Group
,
ScrollArea
,
Stack
,
Table
,
Text
,
Center
,
TextInput
,
UnstyledButton
,
createStyles
,
Container
,
ActionIcon
,
Button
,
Stack
UnstyledButton
}
from
"
@mantine/core
"
;
import
{
BuildingStore
,
ChevronDown
,
ChevronUp
,
Edit
,
Search
,
Selector
,
Stack3
,
Trash
,
}
from
"
tabler-icons-react
"
;
import
{
deleteEvent
,
getEvents
}
from
"
./event-api
"
;
import
{
MarketEvent
}
from
"
../../models
"
;
import
{
Stand
}
from
"
../../models/stand
"
;
import
{
useAuth
}
from
"
../../context/auth/auth-context
"
;
import
{
useNotification
}
from
"
../../context/notification/notification-context
"
;
import
{
useMutation
}
from
"
react-query
"
;
import
{
DeleteValues
}
from
"
./event-types
"
;
import
{
useNavigate
}
from
"
react-router-dom
"
;
import
{
useDialog
}
from
"
../../context/dialog/dialog-context
"
;
import
{
ConfirmDialog
}
from
"
../../components/dialogs/confirm-dialog/confirm-dialog
"
;
import
{
deleteEvent
,
getEvents
}
from
"
./event-api
"
;
import
{
MarketEvent
}
from
"
../../models
"
;
import
{
Stand
}
from
"
../../models/stand
"
;
import
{
useAuth
}
from
"
../../context/auth/auth-context
"
;
import
{
useNotification
}
from
"
../../context/notification/notification-context
"
;
import
{
useMutation
}
from
"
react-query
"
;
import
{
DeleteValues
}
from
"
./event-types
"
;
import
{
useNavigate
}
from
"
react-router-dom
"
;
import
{
useDialog
}
from
"
../../context/dialog/dialog-context
"
;
import
{
ConfirmDialog
}
from
"
../../components/dialogs/confirm-dialog/confirm-dialog
"
;
import
{
BuildingStore
,
ChevronDown
,
ChevronUp
,
Edit
,
Search
,
Selector
,
Trash
,}
from
"
tabler-icons-react
"
;
export
const
Events
=
()
=>
{
const
navigate
=
useNavigate
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment