@@ -150,24 +150,37 @@ const PaymentView: React.FC<PaymentViewProps> = (props: PaymentViewProps) => {
150150 { view === 'audit' && (
151151 < >
152152 < div className = { styles . auditSection } >
153- { auditLines &&
154- auditLines . length > 0 &&
155- auditLines . map ( ( line ) => (
153+ { auditLines
154+ && auditLines . length > 0
155+ && auditLines . map ( line => (
156156 < Collapsible
157157 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+ }
159168 containerClass = { styles . container }
160- contentClass = { styles . content } >
169+ contentClass = { styles . content }
170+ >
161171 < div className = { styles . auditItem } >
162172 < div >
163173 < p >
164- < strong > User:</ strong > { line . userId }
174+ < strong > User:</ strong >
175+ { line . userId }
165176 </ p >
166177 < p >
167- < strong > Action:</ strong > { formatAction ( line . action ) }
178+ < strong > Action:</ strong >
179+ { formatAction ( line . action ) }
168180 </ p >
169181 < p >
170- < strong > Note:</ strong > { line . note }
182+ < strong > Note:</ strong >
183+ { line . note }
171184 </ p >
172185 </ div >
173186 </ div >
@@ -188,29 +201,34 @@ const PaymentView: React.FC<PaymentViewProps> = (props: PaymentViewProps) => {
188201 { view === 'external_transaction' && (
189202 < >
190203 < 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 ) => (
194207 < >
195208 < Collapsible
196209 key = { `internal-record${ index } ` }
197210 header = { < h3 > Internal Record</ h3 > }
198211 containerClass = { styles . container }
199- contentClass = { styles . content } >
212+ contentClass = { styles . content }
213+ >
200214 < div className = { styles . auditItem } >
201215 < div >
202216 < p >
203- < strong > Provider Used:</ strong > { ' ' }
217+ < strong > Provider Used:</ strong >
218+ { ' ' }
204219 { externalTransaction . paymentMethodUsed }
205220 </ p >
206221 < p >
207- < strong > Status:</ strong > { externalTransaction . status }
222+ < strong > Status:</ strong >
223+ { externalTransaction . status }
208224 </ p >
209225 < p >
210- < strong > Processed At:</ strong > { externalTransaction . createdAt }
226+ < strong > Processed At:</ strong >
227+ { externalTransaction . createdAt }
211228 </ p >
212229 < p >
213- < strong > Totl Amount Processed:</ strong > { ' ' }
230+ < strong > Total Amount Processed:</ strong >
231+ { ' ' }
214232 { externalTransaction . totalNetAmount }
215233 </ p >
216234 </ div >
@@ -220,7 +238,8 @@ const PaymentView: React.FC<PaymentViewProps> = (props: PaymentViewProps) => {
220238 key = { `external-record${ index } ` }
221239 header = { < h3 > External Record</ h3 > }
222240 containerClass = { styles . container }
223- contentClass = { styles . content } >
241+ contentClass = { styles . content }
242+ >
224243 < div className = { styles . auditItem } >
225244 < div >
226245 < pre >
0 commit comments