-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
423 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import React from "react"; | ||
|
||
export const Dashboard = () => { | ||
return <div>Dashboard</div>; | ||
}; | ||
|
||
export default Dashboard; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import List from "./list"; | ||
import React from "react"; | ||
|
||
export const QuestionsPage = () => { | ||
return ( | ||
<div> | ||
<List /> | ||
</div> | ||
); | ||
}; | ||
export default QuestionsPage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
export interface InputOption { | ||
value: string; | ||
label: string; | ||
} | ||
|
||
export interface Answer { | ||
inputId: string; | ||
inputType: string; | ||
answerText: string; | ||
} | ||
|
||
export interface Question { | ||
question: string; | ||
inputId: string; | ||
inputType: "input" | "text" | "radio" | "checkbox" | "select" | "textarea" | "fieldset"; | ||
inputOptions?: InputOption; | ||
inputTypeValue?: string; | ||
answers?: Answer[]; | ||
} | ||
|
||
|
||
export interface QuestionAnswer { | ||
question: Question; | ||
chainRes: { | ||
text: string; | ||
[key: string]: any; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
export const questionSamples = [ | ||
{ | ||
question: { | ||
question: "Êtes-vous éligible pour travailler au Canada?", | ||
inputId: "input-q_4e16b181f7f75a81edab7d4322707550", | ||
inputType: "fieldset", | ||
answers: [ | ||
{ | ||
inputId: "input-q_4e16b181f7f75a81edab7d4322707550-0", | ||
inputType: "radio", | ||
answerText: "Yes", | ||
}, | ||
{ | ||
inputId: "input-q_4e16b181f7f75a81edab7d4322707550-1", | ||
inputType: "radio", | ||
answerText: "No", | ||
}, | ||
], | ||
}, | ||
chainRes: { | ||
text: 'input-q_4e16b181f7f75a81edab7d4322707550-0', | ||
}, | ||
}, | ||
|
||
{ | ||
question: { | ||
question: | ||
"Do you have technical expertise in any of the following areas?(optional)", | ||
inputId: "input-q_74e6547a6894e8856547fb4b8eddce7d", | ||
inputType: "fieldset", | ||
answers: [ | ||
{ | ||
inputId: | ||
"ifl-CheckboxFormField-ihl-useId-indeed-theme-provider-woxvrx-11-0", | ||
inputType: "checkbox", | ||
answerText: "Video Streaming", | ||
}, | ||
{ | ||
inputId: | ||
"ifl-CheckboxFormField-ihl-useId-indeed-theme-provider-woxvrx-11-1", | ||
inputType: "checkbox", | ||
answerText: "Security", | ||
}, | ||
{ | ||
inputId: | ||
"ifl-CheckboxFormField-ihl-useId-indeed-theme-provider-woxvrx-11-2", | ||
inputType: "checkbox", | ||
answerText: "Machine Learning", | ||
}, | ||
{ | ||
inputId: | ||
"ifl-CheckboxFormField-ihl-useId-indeed-theme-provider-woxvrx-11-3", | ||
inputType: "checkbox", | ||
answerText: "Front-end Development", | ||
}, | ||
{ | ||
inputId: | ||
"ifl-CheckboxFormField-ihl-useId-indeed-theme-provider-woxvrx-11-4", | ||
inputType: "checkbox", | ||
answerText: "Event-Driven Design", | ||
}, | ||
{ | ||
inputId: | ||
"ifl-CheckboxFormField-ihl-useId-indeed-theme-provider-woxvrx-11-5", | ||
inputType: "checkbox", | ||
answerText: "Miscroservices", | ||
}, | ||
], | ||
}, | ||
chainRes: { | ||
text: '"ifl-CheckboxFormField-ihl-useId-indeed-theme-provider-woxvrx-11-0,ifl-CheckboxFormField-ihl-useId-indeed-theme-provider-woxvrx-11-1,ifl-CheckboxFormField-ihl-useId-indeed-theme-provider-woxvrx-11-2,ifl-CheckboxFormField-ihl-useId-indeed-theme-provider-woxvrx-11-3,ifl-CheckboxFormField-ihl-useId-indeed-theme-provider-woxvrx-11-4"', | ||
}, | ||
}, | ||
{ | ||
question: { | ||
question: "City you reside in", | ||
inputId: "input-q_7ae9d215d9398af70eba60d4030366bc", | ||
inputType: "input", | ||
inputTypeValue: "text", | ||
}, | ||
chainRes: { | ||
text: "Toronto", | ||
}, | ||
}, | ||
]; | ||
|
||
|
||
export default questionSamples; |
Oops, something went wrong.