Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit daeeb06

Browse files
authored
Merge pull request #476 from arpitchaudhari/dev
#475, #467 & fixed liniting issues
2 parents d93b9b0 + a325677 commit daeeb06

File tree

3 files changed

+38
-30
lines changed

3 files changed

+38
-30
lines changed

src/routes/CreateNewTeam/components/SearchAndSubmit/index.jsx

+10-6
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,23 @@ function SearchAndSubmit(props) {
2929

3030
const matchedSkills = useMemo(() => {
3131
if (skills && matchingRole && matchingRole.matchedSkills) {
32-
return _.compact(_.map(matchingRole.matchedSkills, (s) =>
33-
_.find(skills, (skill) => skill.name === s)
34-
));
32+
return _.compact(
33+
_.map(matchingRole.matchedSkills, (s) =>
34+
_.find(skills, (skill) => skill.name === s)
35+
)
36+
);
3537
} else {
3638
return [];
3739
}
3840
}, [skills, matchingRole]);
3941

4042
const unMatchedSkills = useMemo(() => {
4143
if (skills && matchingRole && matchingRole.unMatchedSkills) {
42-
return _.compact(_.map(matchingRole.unMatchedSkills, (s) =>
43-
_.find(skills, (skill) => skill.name === s)
44-
));
44+
return _.compact(
45+
_.map(matchingRole.unMatchedSkills, (s) =>
46+
_.find(skills, (skill) => skill.name === s)
47+
)
48+
);
4549
} else {
4650
return [];
4751
}

src/routes/CreateNewTeam/pages/CreateTaasPayment/PaymentForm/index.jsx

+16-10
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const PaymentForm = ({ calculatedAmount }) => {
5757
const [errors, setErrors] = useState({
5858
card: true,
5959
cardExpire: true,
60-
cardCvc: true,
60+
cvc: true,
6161
});
6262
const [clicked, setClicked] = useState(true);
6363
const [projectId, setProjectId] = useState(null);
@@ -172,8 +172,8 @@ const PaymentForm = ({ calculatedAmount }) => {
172172
fieldValues.name &&
173173
fieldValues.zipcode &&
174174
dropdown &&
175-
cardValid;
176-
Object.values(errors).every((x) => x === "");
175+
cardValid &&
176+
Object.values(errors).every((x) => x === "" || x === false);
177177

178178
return isValid;
179179
};
@@ -240,14 +240,20 @@ const PaymentForm = ({ calculatedAmount }) => {
240240
</button>
241241
</form>
242242

243-
<ConfirmationModal open={requestLoading} isLoading={requestLoading} loadingMessage="Creating A New Team"/>
244-
<PaymentResultPopup
245-
open={showPaymentResultPopup}
246-
onContinueClick={goToTassProject}
247-
onClose={() => {
248-
setShowPaymentResultPopup(false);
249-
}}
243+
<ConfirmationModal
244+
open={requestLoading}
245+
isLoading={requestLoading}
246+
loadingMessage="Creating A New Team"
250247
/>
248+
{showPaymentResultPopup ? (
249+
<PaymentResultPopup
250+
open={showPaymentResultPopup}
251+
onContinueClick={goToTassProject}
252+
onClose={() => {
253+
setShowPaymentResultPopup(false);
254+
}}
255+
/>
256+
) : null}
251257
</>
252258
);
253259
};

src/routes/CreateNewTeam/pages/CreateTaasPayment/PaymentResultPopup/styles.module.scss

+12-14
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,22 @@
11
@import "styles/include";
22

33
.header {
4-
margin-top: -30px;
5-
background-color: #ffffff;
6-
background-image: linear-gradient(
7-
90deg
8-
, #9D41C9, #EF476F);
9-
background-size: 100%;
10-
background-clip: text;
11-
-webkit-text-fill-color: transparent;
12-
font-family: BarlowCondensed;
13-
font-size: 34px;
14-
line-height: 38px;
15-
text-align: center;
4+
margin-top: -30px;
5+
background-color: #ffffff;
6+
background-image: linear-gradient(90deg, #9d41c9, #ef476f);
7+
background-size: 100%;
8+
background-clip: text;
9+
-webkit-text-fill-color: transparent;
10+
font-family: BarlowCondensed;
11+
font-size: 34px;
12+
line-height: 38px;
13+
text-align: center;
1614
}
1715

1816
.sub-header {
1917
@include font-roboto;
2018
margin-top: 20px;
21-
color: #2A2A2A;
19+
color: #2a2a2a;
2220
font-size: 16px;
2321
line-height: 26px;
2422
text-align: center;
@@ -32,7 +30,7 @@
3230
.time-label {
3331
@include font-roboto;
3432
margin-top: 10px;
35-
color: #2A2A2A;
33+
color: #2a2a2a;
3634
font-size: 14px;
3735
line-height: 22px;
3836
text-align: center;

0 commit comments

Comments
 (0)