Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 9929 Rev 12320
Línea 5... Línea 5...
5
import MainView from '../views/MainView'
5
import MainView from '../views/MainView'
Línea 6... Línea 6...
6
 
6
 
Línea 7... Línea 7...
7
 
7
 
Línea 8... Línea 8...
8
const VacanciesRoutes = ({ backendVars }) => {
8
const VacanciesRoutes = ({ backendVars }) => {
9
 
9
 
10
    const [actionLink, setActionLink] = useState(backendVars.add_link)
10
	const [actionLink, setActionLink] = useState(backendVars.add_link)
11
 
11
 
12
    return (
12
	return (
13
        <Router>
13
		<Router>
14
            <ContentTitle title="Reclutamiento y Selección">
14
			<ContentTitle title="Reclutamiento y Selección">
15
                <Switch>
15
				<Switch>
16
                    <Route
16
					<Route
17
                        exact path='/recruitment-and-selection/vacancies'
17
						exact path='/recruitment-and-selection/vacancies'
18
                        component={() =>
18
						component={() =>
19
                            <MainView
19
							<MainView
20
                                {...backendVars}
20
								{...backendVars}
21
                                setActionLink={setActionLink}
21
								setActionLink={setActionLink}
22
                            />
22
							/>
23
                        }
23
						}
24
                    />
24
					/>
25
                    <Route
25
					<Route
26
                        path='/recruitment-and-selection/vacancies/:action'
26
						path='/recruitment-and-selection/vacancies/:action'
27
                        component={() => <FormView actionLink={actionLink} googleApiKey={backendVars.googleApiKey} />}
27
						component={() => <FormView actionLink={actionLink} googleApiKey={backendVars.googleApiKey} {...backendVars}/>}
28
                    />
28
					/>
29
                </Switch>
29
				</Switch>
30
            </ContentTitle>
30
			</ContentTitle>
31
        </Router>
31
		</Router>