Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 12013 Rev 12014
Línea 17... Línea 17...
17
 
17
 
Línea 18... Línea 18...
18
const TableView = ({ add_link, table_link, permisions, actionLink, setActionLink }) => {
18
const TableView = ({ add_link, table_link, permisions, actionLink, setActionLink }) => {
19
 
19
 
20
	const dispatch = useDispatch()
20
	const dispatch = useDispatch()
21
	const history = useHistory()
21
	const history = useHistory()
22
	const { url } = useRouteMatch()
22
	const { path } = useRouteMatch()
23
	const [modalToShow, setModalToShow] = useState('')
23
	const [modalToShow, setModalToShow] = useState('')
24
	const [items, setItems] = useState([])
24
	const [items, setItems] = useState([])
25
	const [total, setTotal] = useState(0)
25
	const [total, setTotal] = useState(0)
Línea 76... Línea 76...
76
											&&
76
											&&
77
											<label
77
											<label
78
												className='d-flex align-items-center'
78
												className='d-flex align-items-center'
79
												onClick={() => {
79
												onClick={() => {
80
													setActionLink(add_link)
80
													setActionLink(add_link)
81
													history.push(`/${url}/add`)
81
													history.push(`/${path}/add`)
82
												}}
82
												}}
83
												style={{ cursor: 'pointer' }}
83
												style={{ cursor: 'pointer' }}
84
											>
84
											>
85
												<i className="fa fa-plus mr-2" />
85
												<i className="fa fa-plus mr-2" />
86
												Agregar
86
												Agregar
Línea 131... Línea 131...
131
																	&&
131
																	&&
132
																	<i
132
																	<i
133
																		className='fa fa-pencil'
133
																		className='fa fa-pencil'
134
																		onClick={() => {
134
																		onClick={() => {
135
																			setActionLink(item.actions.link_edit)
135
																			setActionLink(item.actions.link_edit)
136
																			history.push(`/${url}/edit`)
136
																			history.push(`/${path}/edit`)
137
																		}}
137
																		}}
138
																		style={{ cursor: 'pointer' }}
138
																		style={{ cursor: 'pointer' }}
139
																	/>
139
																	/>
140
																}
140
																}
141
																{
141
																{