Proyectos de Subversion LeadersLinked - Backend

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
10447 stevensc 1
import React, { useState } from 'react'
10437 stevensc 2
import { Route, Switch } from 'react-router-dom'
10438 stevensc 3
import ContentTitle from '../../../shared/ContentTitle'
10436 stevensc 4
import FormView from './FormView'
5
import TableView from './TableView'
10425 stevensc 6
 
10436 stevensc 7
const MainView = ({ backendVars }) => {
10425 stevensc 8
 
10447 stevensc 9
	const [actionLink, setAcctionLink] = useState()
10
 
11
	return (
12
		<ContentTitle title="Entrevistas">
13
			<Switch>
14
				<Route
15
					exact path='/recruitment-and-selection/interview/form'
16
					component={() => <TableView {...backendVars} setActionLink={setAcctionLink} />}
17
				/>
18
				<Route
19
					exact path='/recruitment-and-selection/interview/form/:action'
20
					component={() => <FormView {...backendVars} actionLink={actionLink} />}
21
				/>
22
			</Switch>
23
		</ContentTitle >
24
	)
10425 stevensc 25
}
26
export default MainView