This repository was archived by the owner on Mar 13, 2025. It is now read-only.
File tree 3 files changed +38
-30
lines changed
components/SearchAndSubmit
3 files changed +38
-30
lines changed Original file line number Diff line number Diff line change @@ -29,19 +29,23 @@ function SearchAndSubmit(props) {
29
29
30
30
const matchedSkills = useMemo ( ( ) => {
31
31
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
+ ) ;
35
37
} else {
36
38
return [ ] ;
37
39
}
38
40
} , [ skills , matchingRole ] ) ;
39
41
40
42
const unMatchedSkills = useMemo ( ( ) => {
41
43
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
+ ) ;
45
49
} else {
46
50
return [ ] ;
47
51
}
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ const PaymentForm = ({ calculatedAmount }) => {
57
57
const [ errors , setErrors ] = useState ( {
58
58
card : true ,
59
59
cardExpire : true ,
60
- cardCvc : true ,
60
+ cvc : true ,
61
61
} ) ;
62
62
const [ clicked , setClicked ] = useState ( true ) ;
63
63
const [ projectId , setProjectId ] = useState ( null ) ;
@@ -172,8 +172,8 @@ const PaymentForm = ({ calculatedAmount }) => {
172
172
fieldValues . name &&
173
173
fieldValues . zipcode &&
174
174
dropdown &&
175
- cardValid ;
176
- Object . values ( errors ) . every ( ( x ) => x === "" ) ;
175
+ cardValid &&
176
+ Object . values ( errors ) . every ( ( x ) => x === "" || x === false ) ;
177
177
178
178
return isValid ;
179
179
} ;
@@ -240,14 +240,20 @@ const PaymentForm = ({ calculatedAmount }) => {
240
240
</ button >
241
241
</ form >
242
242
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"
250
247
/>
248
+ { showPaymentResultPopup ? (
249
+ < PaymentResultPopup
250
+ open = { showPaymentResultPopup }
251
+ onContinueClick = { goToTassProject }
252
+ onClose = { ( ) => {
253
+ setShowPaymentResultPopup ( false ) ;
254
+ } }
255
+ />
256
+ ) : null }
251
257
</ >
252
258
) ;
253
259
} ;
Original file line number Diff line number Diff line change 1
1
@import " styles/include" ;
2
2
3
3
.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 ;
16
14
}
17
15
18
16
.sub-header {
19
17
@include font-roboto ;
20
18
margin-top : 20px ;
21
- color : #2A2A2A ;
19
+ color : #2a2a2a ;
22
20
font-size : 16px ;
23
21
line-height : 26px ;
24
22
text-align : center ;
32
30
.time-label {
33
31
@include font-roboto ;
34
32
margin-top : 10px ;
35
- color : #2A2A2A ;
33
+ color : #2a2a2a ;
36
34
font-size : 14px ;
37
35
line-height : 22px ;
38
36
text-align : center ;
You can’t perform that action at this time.
0 commit comments