Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 12318 | Rev 12321 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 12318 Rev 12319
Línea 8... Línea 8...
8
import 'react-datetime/css/react-datetime.css'
8
import 'react-datetime/css/react-datetime.css'
9
import { addNotification } from '../../../redux/notification/notification.actions'
9
import { addNotification } from '../../../redux/notification/notification.actions'
10
import { useDispatch } from 'react-redux'
10
import { useDispatch } from 'react-redux'
11
import parse from 'html-react-parser'
11
import parse from 'html-react-parser'
Línea -... Línea 12...
-
 
12
 
-
 
13
const FormView = ({
-
 
14
	actionLink,
-
 
15
	googleApiKey,
-
 
16
	jobCategories: jsonCategories,
12
 
17
	industries: jsonIndustries,
-
 
18
	jobDescritions: jsonDescriptions
Línea 13... Línea 19...
13
const FormView = ({ actionLink, googleApiKey, jobCategories, industries, jobDescritions }) => {
19
}) => {
14
 
20
 
15
	const history = useHistory()
21
	const history = useHistory()
Línea 119... Línea 125...
119
				})
125
				})
120
		}
126
		}
121
	}, [action])
127
	}, [action])
Línea 122... Línea 128...
122
 
128
 
123
	useEffect(() => {
129
	useEffect(() => {
124
		if (action === 'add') {
130
		if (action === 'add' && jsonCategories && jsonDescriptions & jsonIndustries) {
125
			Object.entries(jobCategories).map(([value, label]) => setJobsCategory(prev => [...prev, { value: value, label: label }]))
131
			Object.entries(jsonCategories).map(([value, label]) => setJobsCategory(prev => [...prev, { value: value, label: label }]))
126
			Object.entries(industries).map(([value, label]) => setIndustry(prev => [...prev, { value: value, label: label }]))
132
			Object.entries(jsonIndustries).map(([value, label]) => setIndustry(prev => [...prev, { value: value, label: label }]))
127
			Object.entries(jobDescritions).map(([value, label]) => setJobsDescriptions(prev => [...prev, { value: value, label: label }]))
133
			Object.entries(jsonDescriptions).map(([value, label]) => setJobsDescriptions(prev => [...prev, { value: value, label: label }]))
128
		}
134
		}
Línea 129... Línea 135...
129
	}, [action])
135
	}, [action])
130
 
136