This repository was archived by the owner on Mar 13, 2025. It is now read-only.
File tree 3 files changed +8
-11
lines changed
3 files changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -18,13 +18,12 @@ import "./styles.module.scss";
18
18
*/
19
19
const Confirm = ( {
20
20
scheduleDetails,
21
- candidateId,
22
- userProfile,
21
+ candidate,
23
22
onGoBack,
24
23
onContinue,
25
24
onShowingLoader,
26
25
} ) => {
27
- const { handle } = userProfile ;
26
+ const { handle, id : candidateId } = candidate ;
28
27
const { duration } = scheduleDetails ;
29
28
30
29
/**
@@ -83,8 +82,7 @@ const Confirm = ({
83
82
84
83
Confirm . propTypes = {
85
84
scheduleDetails : PT . object ,
86
- userProfile : PT . object ,
87
- candidateId : PT . string ,
85
+ candidate : PT . object ,
88
86
onGoBack : PT . func ,
89
87
onContinue : PT . func ,
90
88
onShowingLoader : PT . func ,
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ import "./styles.module.scss";
7
7
/**
8
8
* The success component shown once the interview is scheduled successfully
9
9
*/
10
- const Success = ( { userProfile , onContinue } ) => {
11
- const { handle } = userProfile ;
10
+ const Success = ( { candidate , onContinue } ) => {
11
+ const { handle } = candidate ;
12
12
return (
13
13
< div styleName = "success-wrapper" >
14
14
< div styleName = "success-text" >
@@ -29,7 +29,7 @@ const Success = ({ userProfile, onContinue }) => {
29
29
} ;
30
30
31
31
Success . propTypes = {
32
- userProfile : PT . object ,
32
+ candidate : PT . object ,
33
33
} ;
34
34
35
35
export default Success ;
Original file line number Diff line number Diff line change @@ -209,16 +209,15 @@ const InterviewPopup = ({
209
209
return (
210
210
< Confirm
211
211
scheduleDetails = { scheduleDetails }
212
- userProfile = { v5UserProfile }
213
212
onContinue = { onChangeStage }
214
213
onGoBack = { onGoingBack }
215
214
onShowingLoader = { onShowingLoader }
216
- candidateId = { candidate . id }
215
+ candidate = { candidate }
217
216
/>
218
217
) ;
219
218
case POPUP_STAGES . SUCCESS :
220
219
return (
221
- < Success userProfile = { v5UserProfile } onContinue = { onChangeStage } />
220
+ < Success candidate = { candidate } onContinue = { onChangeStage } />
222
221
) ;
223
222
default :
224
223
return null ;
You can’t perform that action at this time.
0 commit comments