|
|
@@ -1,26 +1,7 @@
|
|
1
|
1
|
import { Survey } from '../entities/index.js'
|
|
2
|
2
|
import { fetchQuestions } from '../services/index.js'
|
|
3
|
|
-import { promptOverrides, inputPlaceholders, invalidInputPrompts ,possible, aspectsArr } from './lang.js'
|
|
|
3
|
+import { promptOverrides, promptToComponent, inputPlaceholders, invalidInputPrompts ,possible, aspectsArr } from './lang.js'
|
|
4
|
4
|
|
|
5
|
|
-const promptToComponent = {
|
|
6
|
|
- splash: 'Splash',
|
|
7
|
|
- name: 'FormInput',
|
|
8
|
|
- email: 'FormInput',
|
|
9
|
|
- password: 'FormInput',
|
|
10
|
|
- zipcode: 'FormInput',
|
|
11
|
|
- seeking: 'FormDropdown',
|
|
12
|
|
- urgency: 'FormDropdown',
|
|
13
|
|
- presence: 'FormDropdown',
|
|
14
|
|
- duration: 'FormDropdown',
|
|
15
|
|
- pronouns: 'FormDropdown',
|
|
16
|
|
- language: 'FormDropdown',
|
|
17
|
|
- image: 'FormInput',
|
|
18
|
|
- distance: 'FormInput',
|
|
19
|
|
- blurb: 'FormInput',
|
|
20
|
|
- aspects: 'Aspects',
|
|
21
|
|
- // experience: 'FormTags',
|
|
22
|
|
- // role: 'FormDropdown',
|
|
23
|
|
-}
|
|
24
|
5
|
/**
|
|
25
|
6
|
* Make a step from match or step information
|
|
26
|
7
|
* @param {object} match
|