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
efc20c59
Commit
efc20c59
authored
May 18, 2022
by
Filip Hujer
Committed by
cizek
May 18, 2022
Browse files
Small changes in event and locations
parent
5dd1ee72
Changes
2
Hide whitespace changes
Inline
Side-by-side
frontend/src/modules/events/events.tsx
View file @
efc20c59
...
...
@@ -11,6 +11,7 @@ import {
Container
,
ActionIcon
,
Button
,
Stack
}
from
"
@mantine/core
"
;
import
{
BuildingStore
,
...
...
@@ -18,7 +19,7 @@ import {
ChevronUp
,
Edit
,
Search
,
Selector
,
Selector
,
Stack3
,
Trash
,
}
from
"
tabler-icons-react
"
;
import
{
deleteEvent
,
getEvents
}
from
"
./event-api
"
;
...
...
@@ -247,7 +248,7 @@ export const Events = () => {
{
user
!==
undefined
&&
(
<
td
>
{
user
.
userRole
==
"
MANAGER
"
&&
(
<
Group
positio
n
=
"center"
>
<
Stack
alig
n
=
"center"
>
<
ActionIcon
variant
=
"hover"
onClick
=
{
()
=>
navigate
(
`/stands/list/events/
${
row
.
id
}
`
)
}
...
...
@@ -266,7 +267,7 @@ export const Events = () => {
onClick
=
{
()
=>
openConfirmDialog
({
id
:
row
.
id
})
}
/>
</
ActionIcon
>
</
Group
>
</
Stack
>
)
}
{
user
.
userRole
==
"
SELLER
"
&&
(
<
Group
position
=
"center"
>
...
...
frontend/src/modules/locations/locations-columns.ts
View file @
efc20c59
...
...
@@ -16,7 +16,7 @@ export const locationColumns: TableColumn<Location>[] = [
{
key
:
"
price
"
,
label
:
"
Price
"
,
render
:
({
priceInCents
})
=>
`$
$
{(
priceInCents
/
100
0
).
toFixed
(
2
)}
`
,
render
:
({
priceInCents
})
=>
`
${(
priceInCents
/
100
).
toFixed
(
2
)}
€
`
,
},
{
key
:
"
actions
"
,
...
...
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