Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 12307 Rev 12314
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 12... Línea 12...
12
 
12
 
Línea 13... Línea 13...
13
const FormView = ({ actionLink, googleApiKey }) => {
13
const FormView = ({ actionLink, googleApiKey, jobCategories, industries, jobDescritions }) => {
14
 
14
 
15
	const history = useHistory()
15
	const history = useHistory()
Línea 118... Línea 118...
118
					}
118
					}
119
				})
119
				})
120
		}
120
		}
121
	}, [action])
121
	}, [action])
Línea -... Línea 122...
-
 
122
 
-
 
123
	useEffect(() => {
-
 
124
		if (action === 'add') {
-
 
125
			Object.entries(jobCategories).map(([value, label]) => {
-
 
126
				setJobsCategory(prev => [...prev, { value: value, label: label }])
-
 
127
			})
-
 
128
 
-
 
129
			Object.entries(industries).map(([value, label]) => {
-
 
130
				setIndustry(prev => [...prev, { value: value, label: label }])
-
 
131
			})
-
 
132
 
-
 
133
			Object.entries(jobDescritions).map(([value, label]) => {
-
 
134
				setJobsDescriptions(prev => [...prev, { value: value, label: label }])
-
 
135
			})
-
 
136
		}
-
 
137
	}, [action])
122
 
138
 
123
	return (
139
	return (
124
		<section className="container">
140
		<section className="container">
125
			<div className="row">
141
			<div className="row">
126
				<div className="col-xs-12 col-md-12">
142
				<div className="col-xs-12 col-md-12">