Skip to content

Commit 524efbb

Browse files
committed
[qa] Formatted code
1 parent b038635 commit 524efbb

9 files changed

Lines changed: 64 additions & 48 deletions

File tree

client/components/header/header.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,10 @@ export default class Header extends React.Component {
138138
<Link
139139
className={`header-link header-desktop-link
140140
header-link-${index + 1} ${
141-
pathname === link.url.replace("{orgSlug}", orgSlug)
142-
? "active"
143-
: ""
144-
} button `}
141+
pathname === link.url.replace("{orgSlug}", orgSlug)
142+
? "active"
143+
: ""
144+
} button `}
145145
to={link.url.replace("{orgSlug}", orgSlug)}
146146
key={index}
147147
>
@@ -218,10 +218,10 @@ export default class Header extends React.Component {
218218
<Link
219219
className={`header-link mobile-link
220220
header-link-${index + 1} ${
221-
pathname === link.url.replace("{orgSlug}", orgSlug)
222-
? "active"
223-
: ""
224-
} button`}
221+
pathname === link.url.replace("{orgSlug}", orgSlug)
222+
? "active"
223+
: ""
224+
} button`}
225225
to={link.url.replace("{orgSlug}", orgSlug)}
226226
key={index}
227227
>

client/components/login/login.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ import getLanguageHeaders from "../../utils/get-language-headers";
3030
import redirectToPayment from "../../utils/redirect-to-payment";
3131
import {localStorage, sessionStorage} from "../../utils/storage";
3232

33-
const PhoneInput = React.lazy(() =>
34-
import(/* webpackChunkName: 'PhoneInput' */ "react-phone-input-2"),
33+
const PhoneInput = React.lazy(
34+
() => import(/* webpackChunkName: 'PhoneInput' */ "react-phone-input-2"),
3535
);
3636
export default class Login extends React.Component {
3737
constructor(props) {

client/components/mobile-phone-change/mobile-phone-change.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ import validateToken from "../../utils/validate-token";
2222
import getError from "../../utils/get-error";
2323
import getLanguageHeaders from "../../utils/get-language-headers";
2424

25-
const PhoneInput = React.lazy(() =>
26-
import(/* webpackChunkName: 'PhoneInput' */ "react-phone-input-2"),
25+
const PhoneInput = React.lazy(
26+
() => import(/* webpackChunkName: 'PhoneInput' */ "react-phone-input-2"),
2727
);
2828

2929
class MobilePhoneChange extends React.Component {
Lines changed: 28 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,42 @@
11
import React from "react";
22
import lazyWithPreload from "./lazy-base";
33

4-
export const Registration = React.lazy(() =>
5-
import(/* webpackChunkName: 'Registration' */ "../registration"),
4+
export const Registration = React.lazy(
5+
() => import(/* webpackChunkName: 'Registration' */ "../registration"),
66
);
7-
export const Status = lazyWithPreload(() =>
8-
import(/* webpackChunkName: 'Status' */ "../status"),
7+
export const Status = lazyWithPreload(
8+
() => import(/* webpackChunkName: 'Status' */ "../status"),
99
);
10-
export const PasswordChange = React.lazy(() =>
11-
import(/* webpackChunkName: 'PasswordChange' */ "../password-change"),
10+
export const PasswordChange = React.lazy(
11+
() => import(/* webpackChunkName: 'PasswordChange' */ "../password-change"),
1212
);
13-
export const MobilePhoneChange = React.lazy(() =>
14-
import(/* webpackChunkName: 'MobilePhoneChange' */ "../mobile-phone-change"),
13+
export const MobilePhoneChange = React.lazy(
14+
() =>
15+
import(
16+
/* webpackChunkName: 'MobilePhoneChange' */ "../mobile-phone-change"
17+
),
1518
);
16-
export const PasswordReset = React.lazy(() =>
17-
import(/* webpackChunkName: 'PasswordReset' */ "../password-reset"),
19+
export const PasswordReset = React.lazy(
20+
() => import(/* webpackChunkName: 'PasswordReset' */ "../password-reset"),
1821
);
19-
export const PasswordConfirm = React.lazy(() =>
20-
import(/* webpackChunkName: 'PasswordConfirm' */ "../password-confirm"),
22+
export const PasswordConfirm = React.lazy(
23+
() => import(/* webpackChunkName: 'PasswordConfirm' */ "../password-confirm"),
2124
);
22-
export const MobilePhoneVerification = React.lazy(() =>
23-
import(
24-
/* webpackChunkName: 'MobilePhoneVerification' */ "../mobile-phone-verification"
25-
),
25+
export const MobilePhoneVerification = React.lazy(
26+
() =>
27+
import(
28+
/* webpackChunkName: 'MobilePhoneVerification' */ "../mobile-phone-verification"
29+
),
2630
);
27-
export const PaymentStatus = React.lazy(() =>
28-
import(/* webpackChunkName: 'PaymentStatus' */ "../payment-status"),
31+
export const PaymentStatus = React.lazy(
32+
() => import(/* webpackChunkName: 'PaymentStatus' */ "../payment-status"),
2933
);
30-
export const PaymentProcess = React.lazy(() =>
31-
import(/* webpackChunkName: 'PaymentProcess' */ "../payment-process"),
34+
export const PaymentProcess = React.lazy(
35+
() => import(/* webpackChunkName: 'PaymentProcess' */ "../payment-process"),
3236
);
33-
export const ConnectedDoesNotExist = React.lazy(() =>
34-
import(/* webpackChunkName: 'ConnectedDoesNotExist' */ "../404"),
37+
export const ConnectedDoesNotExist = React.lazy(
38+
() => import(/* webpackChunkName: 'ConnectedDoesNotExist' */ "../404"),
3539
);
36-
export const DoesNotExist = React.lazy(() =>
37-
import(/* webpackChunkName: 'DoesNotExist' */ "../404/404"),
40+
export const DoesNotExist = React.lazy(
41+
() => import(/* webpackChunkName: 'DoesNotExist' */ "../404/404"),
3842
);
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import lazyWithPreload from "./lazy-base";
22

3-
const Logout = lazyWithPreload(() =>
4-
import(/* webpackChunkName: 'Logout' */ "../logout"),
3+
const Logout = lazyWithPreload(
4+
() => import(/* webpackChunkName: 'Logout' */ "../logout"),
55
);
66
export default Logout;

client/components/registration/registration.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ import InfoModal from "../../utils/modal";
2828
import getPlanSelection from "../../utils/get-plan-selection";
2929
import getPlans from "../../utils/get-plans";
3030

31-
const PhoneInput = React.lazy(() =>
32-
import(/* webpackChunkName: 'PhoneInput' */ "react-phone-input-2"),
31+
const PhoneInput = React.lazy(
32+
() => import(/* webpackChunkName: 'PhoneInput' */ "react-phone-input-2"),
3333
);
3434

3535
export default class Registration extends React.Component {

client/index.css

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,19 @@
33
font-style: normal;
44
font-weight: 500;
55
font-display: swap;
6-
src: local("Montserrat Medium"), local("Montserrat-Medium"),
6+
src:
7+
local("Montserrat Medium"),
8+
local("Montserrat-Medium"),
79
url(assets/fonts/montserrat-medium.woff2) format("woff2");
810
}
911
@font-face {
1012
font-family: "Montserrat";
1113
font-style: normal;
1214
font-weight: 600;
1315
font-display: swap;
14-
src: local("Montserrat Bold"), local("Montserrat-Bold"),
16+
src:
17+
local("Montserrat Bold"),
18+
local("Montserrat-Bold"),
1519
url(assets/fonts/montserrat-bold.woff2) format("woff2");
1620
}
1721

@@ -265,14 +269,18 @@ h1 {
265269
width: 100%;
266270
opacity: 0;
267271
visibility: hidden;
268-
transition: opacity 0.3s 0s, visibility 0s 0.3s;
272+
transition:
273+
opacity 0.3s 0s,
274+
visibility 0s 0.3s;
269275
z-index: 999;
270276
}
271277

272278
.modal.is-visible {
273279
opacity: 1;
274280
visibility: visible;
275-
transition: opacity 0.3s 0s, visibility 0s 0s;
281+
transition:
282+
opacity 0.3s 0s,
283+
visibility 0s 0s;
276284
}
277285

278286
#root .modal-container {

client/utils/get-error-text.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const getErrorText = (error, fallbackVal = "") => {
44
return data.detail
55
? data.detail
66
: data.non_field_errors
7-
? data.non_field_errors[0]
8-
: fallbackVal;
7+
? data.non_field_errors[0]
8+
: fallbackVal;
99
};
1010
export default getErrorText;

client/utils/modal.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,16 @@
66
width: 100%;
77
opacity: 0;
88
visibility: hidden;
9-
transition: opacity 0.3s 0s, visibility 0s 0.3s;
9+
transition:
10+
opacity 0.3s 0s,
11+
visibility 0s 0.3s;
1012
}
1113
.logout-modal.is-visible {
1214
opacity: 1;
1315
visibility: visible;
14-
transition: opacity 0.3s 0s, visibility 0s 0s;
16+
transition:
17+
opacity 0.3s 0s,
18+
visibility 0s 0s;
1519
}
1620
.logout-modal-container {
1721
position: absolute;

0 commit comments

Comments
 (0)