tf-checkout-react 1.0.103 → 1.0.106
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/api/index.d.ts +3 -1
- package/dist/components/common/CustomField.d.ts +1 -1
- package/dist/components/common/DatePickerField.d.ts +14 -0
- package/dist/components/common/RedirectModal.d.ts +7 -0
- package/dist/components/countdown/index.d.ts +3 -1
- package/dist/components/orderDetailsContainer/ticketsTable.d.ts +2 -0
- package/dist/components/rsvpContainer/index.d.ts +7 -0
- package/dist/components/ticketResale/index.d.ts +5 -3
- package/dist/components/ticketsContainer/AccessCodeSection.d.ts +7 -0
- package/dist/components/ticketsContainer/PromoCodeSection.d.ts +5 -9
- package/dist/components/ticketsContainer/TicketsSection.d.ts +6 -3
- package/dist/components/ticketsContainer/index.d.ts +9 -2
- package/dist/components/timerWidget/index.d.ts +3 -3
- package/dist/images/cross.svg +44 -0
- package/dist/images/done.svg +3 -3
- package/dist/index.d.ts +2 -0
- package/dist/tf-checkout-react.cjs.development.js +639 -223
- 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 +645 -231
- package/dist/tf-checkout-react.esm.js.map +1 -1
- package/dist/tf-checkout-styles.css +1 -1
- package/package.json +89 -89
- package/src/.DS_Store +0 -0
- package/src/.d.ts +2 -2
- package/src/api/index.ts +300 -278
- package/src/assets/images/cross.svg +44 -0
- package/src/assets/images/done.svg +3 -3
- package/src/components/.DS_Store +0 -0
- package/src/components/billing-info-container/index.tsx +811 -799
- package/src/components/billing-info-container/style.css +105 -105
- package/src/components/billing-info-container/utils.ts +225 -224
- package/src/components/common/CheckboxField.tsx +41 -41
- package/src/components/common/CustomField.tsx +87 -84
- package/src/components/common/DatePickerField.tsx +98 -0
- package/src/components/common/FormikPhoneNumberField.tsx +51 -51
- package/src/components/common/Loader.tsx +9 -9
- package/src/components/common/RadioField.tsx +35 -35
- package/src/components/common/RedirectModal.tsx +43 -0
- package/src/components/common/SelectField.tsx +80 -80
- package/src/components/common/SnackbarAlert.tsx +53 -53
- package/src/components/common/index.tsx +4 -4
- package/src/components/confirmModal/index.tsx +51 -51
- package/src/components/confirmModal/style.css +21 -21
- package/src/components/confirmationContainer/config.ts +72 -72
- package/src/components/confirmationContainer/index.tsx +197 -197
- package/src/components/confirmationContainer/social-buttons.tsx +94 -94
- package/src/components/confirmationContainer/style.css +202 -202
- package/src/components/countdown/index.tsx +98 -89
- package/src/components/countdown/style.css +9 -9
- package/src/components/index.ts +7 -7
- package/src/components/loginModal/index.tsx +209 -209
- package/src/components/loginModal/style.css +71 -71
- package/src/components/myTicketsContainer/index.tsx +196 -196
- package/src/components/myTicketsContainer/row.tsx +41 -41
- package/src/components/myTicketsContainer/style.css +39 -39
- package/src/components/myTicketsContainer/tableConfig.tsx +34 -34
- package/src/components/orderDetailsContainer/index.tsx +252 -249
- package/src/components/orderDetailsContainer/style.css +72 -72
- package/src/components/orderDetailsContainer/ticketsTable.tsx +130 -124
- package/src/components/paymentContainer/index.tsx +285 -284
- package/src/components/registerModal/index.tsx +190 -190
- package/src/components/rsvpContainer/index.tsx +126 -0
- package/src/components/stripePayment/index.tsx +254 -253
- package/src/components/stripePayment/style.css +59 -59
- package/src/components/ticketResale/index.tsx +74 -56
- package/src/components/ticketResaleModal/index.tsx +215 -210
- package/src/components/ticketResaleModal/style.css +28 -28
- package/src/components/ticketsContainer/AccessCodeSection.tsx +50 -0
- package/src/components/ticketsContainer/PromoCodeSection.tsx +88 -99
- package/src/components/ticketsContainer/ReferralLogic.tsx +31 -33
- package/src/components/ticketsContainer/TicketRow.tsx +83 -83
- package/src/components/ticketsContainer/TicketsSection.tsx +90 -81
- package/src/components/ticketsContainer/index.tsx +464 -430
- package/src/components/ticketsContainer/style.css +181 -181
- package/src/components/ticketsContainer/utils.ts +11 -11
- package/src/components/timerWidget/index.tsx +87 -70
- package/src/components/timerWidget/style.css +34 -26
- package/src/components/waitingList/index.tsx +178 -178
- package/src/components/waitingList/style.css +26 -26
- package/src/env.ts +20 -20
- package/src/index.ts +15 -13
- package/src/normalizers/index.ts +45 -45
- package/src/types/billing-info-data.ts +37 -37
- package/src/types/payment-field.ts +7 -7
- package/src/types/referral-promotion.ts +7 -7
- package/src/utils/createCheckoutDataBodyWithDefaultHolder.ts +59 -59
- package/src/utils/downloadPDF.tsx +30 -30
- package/src/utils/formikErrorFocus.ts +24 -24
- package/src/utils/getImage.ts +14 -14
- package/src/utils/getQueryVariable.ts +13 -13
- package/src/utils/index.ts +5 -5
- package/src/utils/setConfigs.ts +26 -26
- package/src/utils/showZero.tsx +10 -10
- package/src/validators/index.ts +20 -20
|
@@ -1,249 +1,252 @@
|
|
|
1
|
-
import React, { useState, useEffect } from 'react'
|
|
2
|
-
import './style.css'
|
|
3
|
-
|
|
4
|
-
import Table from '@mui/material/Table'
|
|
5
|
-
import TableBody from '@mui/material/TableBody'
|
|
6
|
-
import TableCell from '@mui/material/TableCell'
|
|
7
|
-
import TableContainer from '@mui/material/TableContainer'
|
|
8
|
-
import TableHead from '@mui/material/TableHead'
|
|
9
|
-
import TableRow from '@mui/material/TableRow'
|
|
10
|
-
import Paper from '@mui/material/Paper'
|
|
11
|
-
import CircularProgress from '@mui/material/CircularProgress'
|
|
12
|
-
import _get from 'lodash/get'
|
|
13
|
-
import _has from 'lodash/has'
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import {
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
const [
|
|
46
|
-
const [
|
|
47
|
-
const [
|
|
48
|
-
const [
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
formData
|
|
92
|
-
formData.append('
|
|
93
|
-
formData.append('
|
|
94
|
-
formData.append('
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
<TableCell>
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
<TableCell
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
}
|
|
1
|
+
import React, { useState, useEffect } from 'react'
|
|
2
|
+
import './style.css'
|
|
3
|
+
|
|
4
|
+
import Table from '@mui/material/Table'
|
|
5
|
+
import TableBody from '@mui/material/TableBody'
|
|
6
|
+
import TableCell from '@mui/material/TableCell'
|
|
7
|
+
import TableContainer from '@mui/material/TableContainer'
|
|
8
|
+
import TableHead from '@mui/material/TableHead'
|
|
9
|
+
import TableRow from '@mui/material/TableRow'
|
|
10
|
+
import Paper from '@mui/material/Paper'
|
|
11
|
+
import CircularProgress from '@mui/material/CircularProgress'
|
|
12
|
+
import _get from 'lodash/get'
|
|
13
|
+
import _has from 'lodash/has'
|
|
14
|
+
import _find from 'lodash/find'
|
|
15
|
+
import { getOrderDetails } from '../../api'
|
|
16
|
+
import TicketsTable, { ITicketTypes } from './ticketsTable'
|
|
17
|
+
import { TicketResaleModal, InitialValuesTypes } from '../ticketResaleModal'
|
|
18
|
+
import ConfirmModal from '../confirmModal'
|
|
19
|
+
import { resaleTicket, removeFromResale } from '../../api'
|
|
20
|
+
|
|
21
|
+
interface TicketTypes {
|
|
22
|
+
currency: string;
|
|
23
|
+
discount: string;
|
|
24
|
+
name: string;
|
|
25
|
+
price: string;
|
|
26
|
+
quantity: string;
|
|
27
|
+
total: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
interface OrderDetailsTypes {
|
|
31
|
+
onGetOrdersSuccess: (res: any) => void;
|
|
32
|
+
onGetOrdersError: (err: any) => void;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
const getTotal = (data: any) => {
|
|
36
|
+
if (!data?.total || !_has(data, 'items.ticket_types.length')) return ''
|
|
37
|
+
|
|
38
|
+
return data.items.ticket_types[0].currency + data.total
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export const OrderDetailsContainer = ({
|
|
42
|
+
onGetOrdersSuccess = () => {},
|
|
43
|
+
onGetOrdersError = () => {},
|
|
44
|
+
}: OrderDetailsTypes) => {
|
|
45
|
+
const [data, setData] = useState<any>({})
|
|
46
|
+
const [loading, setLoading] = useState(true)
|
|
47
|
+
const [showResaleModal, setShowResaleModal] = useState(false)
|
|
48
|
+
const [showRemoveResaleModal, setShowRemoveResaleModal] = useState(false)
|
|
49
|
+
const [activeTicket, setActiveTicket] = useState<any>(null)
|
|
50
|
+
|
|
51
|
+
useEffect(() => {
|
|
52
|
+
(async () => {
|
|
53
|
+
try {
|
|
54
|
+
setLoading(true)
|
|
55
|
+
let orderId = ''
|
|
56
|
+
if (typeof window !== 'undefined') {
|
|
57
|
+
const params: URLSearchParams = new URL(`${window.location}`)
|
|
58
|
+
.searchParams
|
|
59
|
+
orderId = params.get('o') || ''
|
|
60
|
+
}
|
|
61
|
+
const response = await getOrderDetails(orderId)
|
|
62
|
+
onGetOrdersSuccess(response)
|
|
63
|
+
|
|
64
|
+
const data = _get(response, 'data.data.attributes')
|
|
65
|
+
|
|
66
|
+
setData(data)
|
|
67
|
+
} catch (error) {
|
|
68
|
+
onGetOrdersError(error)
|
|
69
|
+
} finally {
|
|
70
|
+
setLoading(false)
|
|
71
|
+
}
|
|
72
|
+
})()
|
|
73
|
+
}, [])
|
|
74
|
+
|
|
75
|
+
const handleSellTicket = (ticket: ITicketTypes) => {
|
|
76
|
+
const ticketTypesArr = data.items.ticket_types
|
|
77
|
+
const sellTicketType = _find(ticketTypesArr, ticketType => ticketType.hash === ticket.ticket_type_hash)
|
|
78
|
+
setActiveTicket({ ...ticket, ticket_type_is_active: sellTicketType?.active })
|
|
79
|
+
setShowResaleModal(true)
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
const handleOnClose = () => {
|
|
83
|
+
setShowResaleModal(false)
|
|
84
|
+
setActiveTicket(null)
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
const handleOnSubmit = async (values: InitialValuesTypes) => {
|
|
88
|
+
try {
|
|
89
|
+
setLoading(true)
|
|
90
|
+
const { to, first_name, last_name, email, confirm_email, confirm } = values
|
|
91
|
+
const formData = new FormData();
|
|
92
|
+
formData.append('to', to)
|
|
93
|
+
formData.append('first_name', first_name)
|
|
94
|
+
formData.append('last_name', last_name)
|
|
95
|
+
formData.append('email', email)
|
|
96
|
+
formData.append('confirm_email', confirm_email)
|
|
97
|
+
formData.append('confirm', String(confirm))
|
|
98
|
+
|
|
99
|
+
await resaleTicket(formData, activeTicket.hash)
|
|
100
|
+
const updatedData = { ...data }
|
|
101
|
+
updatedData?.tickets?.forEach((ticket: ITicketTypes) => {
|
|
102
|
+
if(ticket.hash === activeTicket.hash) {
|
|
103
|
+
ticket.is_sellable = false
|
|
104
|
+
ticket.is_on_sale = true
|
|
105
|
+
}
|
|
106
|
+
})
|
|
107
|
+
|
|
108
|
+
setData(updatedData)
|
|
109
|
+
} catch (error) {
|
|
110
|
+
// ...
|
|
111
|
+
} finally {
|
|
112
|
+
setShowResaleModal(false)
|
|
113
|
+
setLoading(false)
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
const handleRemoveFromResale = (ticket: ITicketTypes) => {
|
|
118
|
+
setShowRemoveResaleModal(true)
|
|
119
|
+
setActiveTicket(ticket)
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
const onCloseRemoveResale = () => {
|
|
123
|
+
setShowRemoveResaleModal(false)
|
|
124
|
+
setActiveTicket(null)
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
const onConfirmRemoveResale = async () => {
|
|
128
|
+
try {
|
|
129
|
+
setLoading(true)
|
|
130
|
+
await removeFromResale(activeTicket.hash)
|
|
131
|
+
const updatedData = { ...data }
|
|
132
|
+
updatedData?.tickets?.forEach((ticket: ITicketTypes) => {
|
|
133
|
+
if(ticket.hash === activeTicket.hash) {
|
|
134
|
+
ticket.is_sellable = true
|
|
135
|
+
ticket.is_on_sale = false
|
|
136
|
+
}
|
|
137
|
+
})
|
|
138
|
+
|
|
139
|
+
setData(updatedData)
|
|
140
|
+
} catch (error) {
|
|
141
|
+
// ...
|
|
142
|
+
} finally {
|
|
143
|
+
setShowRemoveResaleModal(false)
|
|
144
|
+
setLoading(false)
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
return (
|
|
149
|
+
<div className="order-details">
|
|
150
|
+
{loading ? (
|
|
151
|
+
<div className="loading">
|
|
152
|
+
<CircularProgress />
|
|
153
|
+
</div>
|
|
154
|
+
) : (
|
|
155
|
+
<>
|
|
156
|
+
<h1 className="layout-title">Order Details</h1>
|
|
157
|
+
<div className="order-summary-box">
|
|
158
|
+
<h4 className="sub-title">Order Summary</h4>
|
|
159
|
+
<div className="personal-link">
|
|
160
|
+
<b>Your personal share link for this event is: </b>
|
|
161
|
+
<a
|
|
162
|
+
href={data?.personal_share_link}
|
|
163
|
+
target="_blank"
|
|
164
|
+
rel="noreferrer"
|
|
165
|
+
>
|
|
166
|
+
{data?.personal_share_link}
|
|
167
|
+
</a>
|
|
168
|
+
</div>
|
|
169
|
+
<TableContainer component={Paper}>
|
|
170
|
+
<Table aria-label="collapsible table">
|
|
171
|
+
<TableHead>
|
|
172
|
+
<TableRow>
|
|
173
|
+
<TableCell>Items</TableCell>
|
|
174
|
+
<TableCell>Price</TableCell>
|
|
175
|
+
<TableCell>Quantity</TableCell>
|
|
176
|
+
<TableCell>Total</TableCell>
|
|
177
|
+
</TableRow>
|
|
178
|
+
</TableHead>
|
|
179
|
+
<TableBody>
|
|
180
|
+
{data?.items?.ticket_types?.map(
|
|
181
|
+
(ticket: TicketTypes, index: number) => (
|
|
182
|
+
<TableRow key={index}>
|
|
183
|
+
<TableCell>
|
|
184
|
+
<b>Ticket Type: </b>
|
|
185
|
+
{ticket.name}
|
|
186
|
+
</TableCell>
|
|
187
|
+
<TableCell>{ticket.currency + ticket.price}</TableCell>
|
|
188
|
+
<TableCell>{ticket.quantity}</TableCell>
|
|
189
|
+
<TableCell>{ticket.currency + ticket.total}</TableCell>
|
|
190
|
+
</TableRow>
|
|
191
|
+
)
|
|
192
|
+
)}
|
|
193
|
+
{data?.items?.add_ons?.map(
|
|
194
|
+
(ticket: TicketTypes, index: number) => (
|
|
195
|
+
<TableRow key={index}>
|
|
196
|
+
<TableCell>
|
|
197
|
+
<b>Add-On: </b>
|
|
198
|
+
{ticket.name}
|
|
199
|
+
</TableCell>
|
|
200
|
+
<TableCell>{ticket.currency + ticket.price}</TableCell>
|
|
201
|
+
<TableCell>{ticket.quantity}</TableCell>
|
|
202
|
+
<TableCell>{ticket.currency + ticket.total}</TableCell>
|
|
203
|
+
</TableRow>
|
|
204
|
+
)
|
|
205
|
+
)}
|
|
206
|
+
<TableRow className="total-row">
|
|
207
|
+
<TableCell />
|
|
208
|
+
<TableCell />
|
|
209
|
+
<TableCell>Total</TableCell>
|
|
210
|
+
<TableCell>{getTotal(data)}</TableCell>
|
|
211
|
+
</TableRow>
|
|
212
|
+
</TableBody>
|
|
213
|
+
</Table>
|
|
214
|
+
</TableContainer>
|
|
215
|
+
</div>
|
|
216
|
+
<TicketsTable
|
|
217
|
+
tickets={data.tickets}
|
|
218
|
+
handleSellTicket={handleSellTicket}
|
|
219
|
+
handleRemoveFromResale={handleRemoveFromResale}
|
|
220
|
+
/>
|
|
221
|
+
<div className="return-button-container">
|
|
222
|
+
<button
|
|
223
|
+
type="button"
|
|
224
|
+
className="return-button"
|
|
225
|
+
onClick={() => {
|
|
226
|
+
if (typeof window !== 'undefined') {
|
|
227
|
+
window.location.assign('/orders')
|
|
228
|
+
}
|
|
229
|
+
}}
|
|
230
|
+
>
|
|
231
|
+
Return to Order History
|
|
232
|
+
</button>
|
|
233
|
+
</div>
|
|
234
|
+
</>
|
|
235
|
+
)}
|
|
236
|
+
{showResaleModal && (
|
|
237
|
+
<TicketResaleModal
|
|
238
|
+
ticket={activeTicket}
|
|
239
|
+
onClose={handleOnClose}
|
|
240
|
+
onSubmit={handleOnSubmit}
|
|
241
|
+
/>
|
|
242
|
+
)}
|
|
243
|
+
{showRemoveResaleModal && (
|
|
244
|
+
<ConfirmModal
|
|
245
|
+
message="Are you sure you want to withdraw your ticket from resale?"
|
|
246
|
+
onClose={onCloseRemoveResale}
|
|
247
|
+
onConfirm={onConfirmRemoveResale}
|
|
248
|
+
/>
|
|
249
|
+
)}
|
|
250
|
+
</div>
|
|
251
|
+
)
|
|
252
|
+
}
|
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
.order-details {
|
|
2
|
-
max-width: 940px;
|
|
3
|
-
margin: 0 auto;
|
|
4
|
-
}
|
|
5
|
-
.order-details .loading {
|
|
6
|
-
width: 100%;
|
|
7
|
-
display: flex;
|
|
8
|
-
justify-content: center;
|
|
9
|
-
align-items: center;
|
|
10
|
-
height: 100vh;
|
|
11
|
-
position: fixed;
|
|
12
|
-
top: 0;
|
|
13
|
-
left: 0;
|
|
14
|
-
background-color: rgba(0, 0, 0, .4);
|
|
15
|
-
z-index: 1400;
|
|
16
|
-
}
|
|
17
|
-
.order-details .layout-title {
|
|
18
|
-
font-size: 24px;
|
|
19
|
-
font-weight: 400;
|
|
20
|
-
}
|
|
21
|
-
.order-details .sub-title {
|
|
22
|
-
font-size: 18px;
|
|
23
|
-
font-weight: 400;
|
|
24
|
-
margin: 10px 0;
|
|
25
|
-
}
|
|
26
|
-
.order-details .order-summary-box {
|
|
27
|
-
margin-top: 30px;
|
|
28
|
-
}
|
|
29
|
-
.order-details .total-row td {
|
|
30
|
-
font-weight: 700;
|
|
31
|
-
color: white;
|
|
32
|
-
}
|
|
33
|
-
.order-details th {
|
|
34
|
-
font-weight: 700;
|
|
35
|
-
color: white;
|
|
36
|
-
}
|
|
37
|
-
.order-details .tickets-box {
|
|
38
|
-
margin-top: 30px;
|
|
39
|
-
}
|
|
40
|
-
.order-details .ticket-add-on-table {
|
|
41
|
-
background-color: #fcf8e3;;
|
|
42
|
-
}
|
|
43
|
-
.order-details .action-button {
|
|
44
|
-
width: max-content;
|
|
45
|
-
font-weight: 400;
|
|
46
|
-
font-size: 14px;
|
|
47
|
-
line-height: normal;
|
|
48
|
-
min-height: auto;
|
|
49
|
-
padding: 12px;
|
|
50
|
-
border: 1px solid white;
|
|
51
|
-
margin-top: 20px;
|
|
52
|
-
margin-bottom: 20px;
|
|
53
|
-
background-color: #212529;
|
|
54
|
-
border-radius: 0;
|
|
55
|
-
color: #fff;
|
|
56
|
-
position: relative;
|
|
57
|
-
display: block;
|
|
58
|
-
cursor: pointer;
|
|
59
|
-
font-family: 'Bebas Neue';
|
|
60
|
-
text-transform: uppercase;
|
|
61
|
-
text-align: center;
|
|
62
|
-
overflow: hidden;
|
|
63
|
-
text-overflow: ellipsis;
|
|
64
|
-
outline: none;
|
|
65
|
-
text-decoration: none;
|
|
66
|
-
}
|
|
67
|
-
.order-details .download-button:hover {
|
|
68
|
-
background-color: #505050;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.order-details .personal-link {
|
|
72
|
-
padding: 20px 0;
|
|
1
|
+
.order-details {
|
|
2
|
+
max-width: 940px;
|
|
3
|
+
margin: 0 auto;
|
|
4
|
+
}
|
|
5
|
+
.order-details .loading {
|
|
6
|
+
width: 100%;
|
|
7
|
+
display: flex;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
align-items: center;
|
|
10
|
+
height: 100vh;
|
|
11
|
+
position: fixed;
|
|
12
|
+
top: 0;
|
|
13
|
+
left: 0;
|
|
14
|
+
background-color: rgba(0, 0, 0, .4);
|
|
15
|
+
z-index: 1400;
|
|
16
|
+
}
|
|
17
|
+
.order-details .layout-title {
|
|
18
|
+
font-size: 24px;
|
|
19
|
+
font-weight: 400;
|
|
20
|
+
}
|
|
21
|
+
.order-details .sub-title {
|
|
22
|
+
font-size: 18px;
|
|
23
|
+
font-weight: 400;
|
|
24
|
+
margin: 10px 0;
|
|
25
|
+
}
|
|
26
|
+
.order-details .order-summary-box {
|
|
27
|
+
margin-top: 30px;
|
|
28
|
+
}
|
|
29
|
+
.order-details .total-row td {
|
|
30
|
+
font-weight: 700;
|
|
31
|
+
color: white;
|
|
32
|
+
}
|
|
33
|
+
.order-details th {
|
|
34
|
+
font-weight: 700;
|
|
35
|
+
color: white;
|
|
36
|
+
}
|
|
37
|
+
.order-details .tickets-box {
|
|
38
|
+
margin-top: 30px;
|
|
39
|
+
}
|
|
40
|
+
.order-details .ticket-add-on-table {
|
|
41
|
+
background-color: #fcf8e3;;
|
|
42
|
+
}
|
|
43
|
+
.order-details .action-button {
|
|
44
|
+
width: max-content;
|
|
45
|
+
font-weight: 400;
|
|
46
|
+
font-size: 14px;
|
|
47
|
+
line-height: normal;
|
|
48
|
+
min-height: auto;
|
|
49
|
+
padding: 12px;
|
|
50
|
+
border: 1px solid white;
|
|
51
|
+
margin-top: 20px;
|
|
52
|
+
margin-bottom: 20px;
|
|
53
|
+
background-color: #212529;
|
|
54
|
+
border-radius: 0;
|
|
55
|
+
color: #fff;
|
|
56
|
+
position: relative;
|
|
57
|
+
display: block;
|
|
58
|
+
cursor: pointer;
|
|
59
|
+
font-family: 'Bebas Neue';
|
|
60
|
+
text-transform: uppercase;
|
|
61
|
+
text-align: center;
|
|
62
|
+
overflow: hidden;
|
|
63
|
+
text-overflow: ellipsis;
|
|
64
|
+
outline: none;
|
|
65
|
+
text-decoration: none;
|
|
66
|
+
}
|
|
67
|
+
.order-details .download-button:hover {
|
|
68
|
+
background-color: #505050;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.order-details .personal-link {
|
|
72
|
+
padding: 20px 0;
|
|
73
73
|
}
|