Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 15498 Rev 15499
Línea 1... Línea 1...
1
import React, { useState } from 'react'
1
import React, { useState } from 'react'
2
import axios from 'axios'
2
import axios from 'axios'
3
import EditModal from './EditModal'
3
import EditModal from './EditModal'
4
import TableContainer from '../../company-sizes/view/TableContainer'
-
 
5
import DeleteModal from '../../../shared/DeleteModal'
4
import DeleteModal from '../../../shared/DeleteModal'
-
 
5
import TableFilters from '../../../shared/table/TableFilters'
6
import Table from '../../company-sizes/view/Table'
6
import Table from '../../../shared/table/Table'
Línea 7... Línea 7...
7
 
7
 
8
const IndustriesView = ({ urlsVar }) => {
-
 
9
 
8
const IndustriesView = ({ urlsVar }) => {
10
	const { linkTable, addUrl, allowAdd, allowEdit, allowDelete } = urlsVar
9
	const { linkTable, addUrl, allowAdd, allowEdit, allowDelete } = urlsVar
11
	const [companyData, setCompanyData] = useState({})
10
	const [companyData, setCompanyData] = useState({})
12
	const [showModal, setShowModal] = useState(false)
11
	const [showModal, setShowModal] = useState(false)
13
	const [showDeleteModal, setShowDeleteModal] = useState(false)
12
	const [showDeleteModal, setShowDeleteModal] = useState(false)
Línea 73... Línea 72...
73
			<section className="content">
72
			<section className="content">
74
				<section className="content-header">
73
				<section className="content-header">
75
					<h1>Industrias</h1>
74
					<h1>Industrias</h1>
76
				</section>
75
				</section>
77
				<div className="container-fluid">
76
				<div className="container-fluid">
78
					<TableContainer data={companyData} getData={getData} onAdd={addItem} allowAdd={allowAdd}>
77
					<TableFilters data={companyData} getData={getData} onAdd={addItem} allowAdd={allowAdd}>
79
						{companyData.items && tableRendered()}
78
						{companyData.items && tableRendered()}
80
					</TableContainer>
79
					</TableFilters>
81
				</div>
80
				</div>
82
			</section>
81
			</section>
83
			<EditModal
82
			<EditModal
84
				isOpen={showModal}
83
				isOpen={showModal}
85
				title='Industrias'
84
				title='Industrias'