tf-checkout-react 1.6.6-beta.12 → 1.6.6-beta.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/orderDetailsContainer/index.d.ts +1 -1
- package/dist/tf-checkout-react.cjs.development.js +2 -2
- package/dist/tf-checkout-react.cjs.development.js.map +1 -1
- package/dist/tf-checkout-react.cjs.production.min.js +1 -1
- package/dist/tf-checkout-react.cjs.production.min.js.map +1 -1
- package/dist/tf-checkout-react.esm.js +2 -2
- package/dist/tf-checkout-react.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/api/index.ts +1 -1
- package/src/components/orderDetailsContainer/index.tsx +10 -9
- package/src/hoc/CustomFields/index.tsx +1 -1
package/package.json
CHANGED
package/src/api/index.ts
CHANGED
|
@@ -155,7 +155,7 @@ export const getCheckoutPageConfigs = async (): Promise<ResponseConfigs> => {
|
|
|
155
155
|
|
|
156
156
|
|
|
157
157
|
export const getCustomFields = async (eventId: string) => {
|
|
158
|
-
const response = await publicRequest.get(`/v1/event/${eventId}/
|
|
158
|
+
const response = await publicRequest.get(`/v1/event/${eventId}/fields`)
|
|
159
159
|
const customFields = _get(response, 'data.data.attributes', [])
|
|
160
160
|
const adaptedResponse = customFieldsDataAdapter(customFields)
|
|
161
161
|
return adaptedResponse
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
1
2
|
import './style.css'
|
|
2
3
|
|
|
4
|
+
import { ThemeOptions } from "@mui/material"
|
|
3
5
|
import Paper from '@mui/material/Paper'
|
|
6
|
+
import { createTheme, ThemeProvider } from "@mui/material/styles"
|
|
4
7
|
import Table from '@mui/material/Table'
|
|
5
8
|
import TableBody from '@mui/material/TableBody'
|
|
6
9
|
import TableCell from '@mui/material/TableCell'
|
|
7
10
|
import TableContainer from '@mui/material/TableContainer'
|
|
8
11
|
import TableHead from '@mui/material/TableHead'
|
|
9
12
|
import TableRow from '@mui/material/TableRow'
|
|
13
|
+
import { CSSProperties } from "@mui/styles"
|
|
10
14
|
import _find from 'lodash/find'
|
|
11
15
|
import _get from 'lodash/get'
|
|
12
16
|
import _has from 'lodash/has'
|
|
@@ -31,9 +35,6 @@ import { InitialValuesTypes, TicketResaleModal } from '../ticketResaleModal'
|
|
|
31
35
|
import { CustomFieldsForm } from './CustomFieldsForm'
|
|
32
36
|
import TicketsTable, { IActionColumns, ITicketTypes } from './ticketsTable'
|
|
33
37
|
import { isFieldUpdatable, renderCustomFieldValue } from './utils'
|
|
34
|
-
import {ThemeOptions} from "@mui/material";
|
|
35
|
-
import {CSSProperties} from "@mui/styles";
|
|
36
|
-
import {createTheme, ThemeProvider} from "@mui/material/styles";
|
|
37
38
|
|
|
38
39
|
interface TicketTypes {
|
|
39
40
|
currency: string;
|
|
@@ -505,12 +506,12 @@ export const OrderDetailsContainer = ({
|
|
|
505
506
|
ticketsTableColumns?.length
|
|
506
507
|
? ticketsTableColumns
|
|
507
508
|
: [
|
|
508
|
-
{key: 'hash' as never, label: 'Ticket ID'},
|
|
509
|
-
{key: 'ticket_type' as never, label: 'Ticket Type'},
|
|
510
|
-
{key: 'holder_name' as never, label: 'Ticket Holder'},
|
|
511
|
-
{key: 'status' as never, label: 'Status'},
|
|
512
|
-
{key: 'download' as never, label: ''},
|
|
513
|
-
{key: 'sell_ticket' as never, label: ''},
|
|
509
|
+
{ key: 'hash' as never, label: 'Ticket ID' },
|
|
510
|
+
{ key: 'ticket_type' as never, label: 'Ticket Type' },
|
|
511
|
+
{ key: 'holder_name' as never, label: 'Ticket Holder' },
|
|
512
|
+
{ key: 'status' as never, label: 'Status' },
|
|
513
|
+
{ key: 'download' as never, label: '' },
|
|
514
|
+
{ key: 'sell_ticket' as never, label: '' },
|
|
514
515
|
]
|
|
515
516
|
}
|
|
516
517
|
handleSellTicket={handleSellTicket}
|
|
@@ -30,7 +30,7 @@ const withCustomFields = (Children: any) => (props: any) => {
|
|
|
30
30
|
|
|
31
31
|
const getFields = async () => {
|
|
32
32
|
try {
|
|
33
|
-
const eventId = getQueryVariable('event_id') || ''
|
|
33
|
+
const eventId = getQueryVariable('event_id') || getQueryVariable("eventId") || ''
|
|
34
34
|
const customFields = await getCustomFields(eventId)
|
|
35
35
|
|
|
36
36
|
const orderFieldsKeys = getFieldsKeys(_get(customFields, 'orderFields', []))
|