Skip to content

Commit d0449da

Browse files
committed
Lint cleanup and typo
1 parent 8ac7844 commit d0449da

File tree

3 files changed

+39
-20
lines changed

3 files changed

+39
-20
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
"shortid": "^2.2.16",
119119
"styled-components": "^5.3.6",
120120
"swr": "^1.3.0",
121-
"tc-auth-lib": "topcoder-platform/tc-auth-lib#1.0.26",
121+
"tc-auth-lib": "topcoder-platform/tc-auth-lib#1.0.27",
122122
"turndown": "^4.0.2",
123123
"typescript": "^4.8.4",
124124
"universal-navigation": "https://github.com/topcoder-platform/universal-navigation#9fc50d938be7182",

src/apps/wallet-admin/src/lib/components/payment-view/PaymentView.tsx

Lines changed: 36 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -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>

yarn.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18449,9 +18449,9 @@ tar@^6.1.13:
1844918449
mkdirp "^1.0.3"
1845018450
yallist "^4.0.0"
1845118451

18452-
tc-auth-lib@topcoder-platform/tc-auth-lib#1.0.26:
18452+
tc-auth-lib@topcoder-platform/tc-auth-lib#1.0.27:
1845318453
version "1.0.2"
18454-
resolved "https://codeload.github.com/topcoder-platform/tc-auth-lib/tar.gz/3e1b78473b421327c492a814df3f6c72f17e860f"
18454+
resolved "https://codeload.github.com/topcoder-platform/tc-auth-lib/tar.gz/dc5b3a29ac3b8e2a0f386fce411c6533c2f33f05"
1845518455
dependencies:
1845618456
lodash "^4.17.19"
1845718457

0 commit comments

Comments
 (0)