Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 12490 | Ir a la última revisión | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
12475 stevensc 1
import React, { useState } from 'react'
12491 stevensc 2
import { BrowserRouter, Route, Switch } from 'react-router-dom'
12475 stevensc 3
import ContentTitle from '../../../shared/ContentTitle'
4
import TableView from '../views/TableView'
5
 
12487 stevensc 6
const Routes = ({ backendVars }) => {
12475 stevensc 7
 
8
	const [actionLink, setActionLink] = useState('')
9
 
10
	return (
12491 stevensc 11
		<BrowserRouter>
12
			<ContentTitle title='Generador de Formularios'>
12490 stevensc 13
				<Switch>
12491 stevensc 14
					<Route exact path='/organizational-climate/form'>
15
						<TableView
16
							actionLink={actionLink}
17
							setActionLink={setActionLink}
18
							{...backendVars}
19
						/>
12490 stevensc 20
					</Route>
21
				</Switch>
22
			</ContentTitle>
12491 stevensc 23
		</BrowserRouter>
12475 stevensc 24
	)
25
}
26
 
27
export default Routes