Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 12483 | Rev 12491 | 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 axios from 'axios'
2
import React, { useState, useEffect } from 'react'
3
import { Card } from 'react-bootstrap'
4
import { useDispatch } from 'react-redux'
5
import { useHistory } from 'react-router-dom'
6
import { LengthFilter, SearchInput, Table, TablePagination } from '../../../recruitment_and_selection/components/TableComponents'
7
import { addNotification } from '../../../redux/notification/notification.actions'
8
import DeleteModal from '../../../shared/DeleteModal'
9
 
10
const headers = [
11
	{ key: 'name', label: 'Nombre', isSorteable: true },
12
	{ key: 'description', label: 'Descripción', isSorteable: true },
13
	{ key: 'status', label: 'Estatus', isSorteable: false },
14
	{ key: 'actions', label: 'Acciones', isSorteable: false }
15
]
16
 
17
const TableView = ({ table_link, setActionLink, permisions, add_link }) => {
18
 
19
	const history = useHistory()
20
	const dispatch = useDispatch()
21
	const [showDeleteModal, setShowDeleteModal] = useState(false)
22
	const [deleteLink, setDeleteLink] = useState('')
23
	const [items, setItems] = useState({})
24
	const [search, setSearch] = useState('')
25
	const [startItem, setStartItem] = useState(1)
26
	const [lastItem, setLastItem] = useState(10)
27
	const [total, setTotal] = useState(10)
28
	const [dataLength, setDataLength] = useState(10)
29
	const [pages, setPages] = useState({
30
		current: 1,
31
		last: 1
32
	})
33
 
34
	return (
35
		<>
12483 stevensc 36
			<h1>Hello</h1>
12475 stevensc 37
		</>
38
	)
39
}
40
 
41
export default TableView