@@ -150,24 +150,37 @@ const PaymentView: React.FC<PaymentViewProps> = (props: PaymentViewProps) => {
150
150
{ view === 'audit' && (
151
151
< >
152
152
< div className = { styles . auditSection } >
153
- { auditLines &&
154
- auditLines . length > 0 &&
155
- auditLines . map ( ( line ) => (
153
+ { auditLines
154
+ && auditLines . length > 0
155
+ && auditLines . map ( line => (
156
156
< Collapsible
157
157
key = { line . id }
158
- header = { < h3 > { new Date ( line . createdAt ) . toLocaleString ( ) } </ h3 > }
158
+ header = {
159
+ (
160
+ < h3 >
161
+ {
162
+ new Date ( line . createdAt )
163
+ . toLocaleString ( )
164
+ }
165
+ </ h3 >
166
+ )
167
+ }
159
168
containerClass = { styles . container }
160
- contentClass = { styles . content } >
169
+ contentClass = { styles . content }
170
+ >
161
171
< div className = { styles . auditItem } >
162
172
< div >
163
173
< p >
164
- < strong > User:</ strong > { line . userId }
174
+ < strong > User:</ strong >
175
+ { line . userId }
165
176
</ p >
166
177
< p >
167
- < strong > Action:</ strong > { formatAction ( line . action ) }
178
+ < strong > Action:</ strong >
179
+ { formatAction ( line . action ) }
168
180
</ p >
169
181
< p >
170
- < strong > Note:</ strong > { line . note }
182
+ < strong > Note:</ strong >
183
+ { line . note }
171
184
</ p >
172
185
</ div >
173
186
</ div >
@@ -188,29 +201,34 @@ const PaymentView: React.FC<PaymentViewProps> = (props: PaymentViewProps) => {
188
201
{ view === 'external_transaction' && (
189
202
< >
190
203
< div className = { styles . auditSection } >
191
- { externalTransactionAudit &&
192
- externalTransactionAudit . length > 0 &&
193
- externalTransactionAudit . map ( ( externalTransaction : PayoutAudit , index : number ) => (
204
+ { externalTransactionAudit
205
+ && externalTransactionAudit . length > 0
206
+ && externalTransactionAudit . map ( ( externalTransaction : PayoutAudit , index : number ) => (
194
207
< >
195
208
< Collapsible
196
209
key = { `internal-record${ index } ` }
197
210
header = { < h3 > Internal Record</ h3 > }
198
211
containerClass = { styles . container }
199
- contentClass = { styles . content } >
212
+ contentClass = { styles . content }
213
+ >
200
214
< div className = { styles . auditItem } >
201
215
< div >
202
216
< p >
203
- < strong > Provider Used:</ strong > { ' ' }
217
+ < strong > Provider Used:</ strong >
218
+ { ' ' }
204
219
{ externalTransaction . paymentMethodUsed }
205
220
</ p >
206
221
< p >
207
- < strong > Status:</ strong > { externalTransaction . status }
222
+ < strong > Status:</ strong >
223
+ { externalTransaction . status }
208
224
</ p >
209
225
< p >
210
- < strong > Processed At:</ strong > { externalTransaction . createdAt }
226
+ < strong > Processed At:</ strong >
227
+ { externalTransaction . createdAt }
211
228
</ p >
212
229
< p >
213
- < strong > Totl Amount Processed:</ strong > { ' ' }
230
+ < strong > Total Amount Processed:</ strong >
231
+ { ' ' }
214
232
{ externalTransaction . totalNetAmount }
215
233
</ p >
216
234
</ div >
@@ -220,7 +238,8 @@ const PaymentView: React.FC<PaymentViewProps> = (props: PaymentViewProps) => {
220
238
key = { `external-record${ index } ` }
221
239
header = { < h3 > External Record</ h3 > }
222
240
containerClass = { styles . container }
223
- contentClass = { styles . content } >
241
+ contentClass = { styles . content }
242
+ >
224
243
< div className = { styles . auditItem } >
225
244
< div >
226
245
< pre >
0 commit comments