Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 11121 Rev 11131
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 DeleteModal from '../../shared/DeleteModal'
3
import DeleteModal from '../../shared/DeleteModal'
4
import TableFilters from '../components/TableFilters'
4
import TableFilters from '../components/TableFilters'
-
 
5
import AddModal from '../components/Modals/AddModal'
Línea 5... Línea 6...
5
 
6
 
Línea 6... Línea 7...
6
const JobsTableView = ({ backendVars }) => {
7
const JobsTableView = ({ backendVars }) => {
7
 
8
 
8
	const { allowAdd, allowDelete, allowEdit, allowUsersWhoApplied, link_add, link_table, onEdit } = backendVars
9
	const { allowAdd, allowDelete, allowEdit, allowUsersWhoApplied, link_add, link_table, onEdit, googleApi } = backendVars
9
	const [companyData, setCompanyData] = useState({})
10
	const [companyData, setCompanyData] = useState({})
10
	const [showModal, setShowModal] = useState(false)
11
	const [showModal, setShowModal] = useState(false)
Línea 79... Línea 80...
79
				allowAdd={allowAdd}
80
				allowAdd={allowAdd}
80
				allowEdit={allowEdit}
81
				allowEdit={allowEdit}
81
				allowDelete={allowDelete}
82
				allowDelete={allowDelete}
82
				allowUsersWhoApplied={allowUsersWhoApplied}
83
				allowUsersWhoApplied={allowUsersWhoApplied}
83
			/>
84
			/>
-
 
85
			{
-
 
86
				showModal
-
 
87
                &&
-
 
88
                <AddModal
-
 
89
                	closeModal={closeModal}
-
 
90
                	dataLink={actionLink}
-
 
91
                	googleApiKey={googleApi}
-
 
92
 
-
 
93
                />
-
 
94
			}
84
			<DeleteModal
95
			<DeleteModal
85
				isOpen={showDeleteModal}
96
				isOpen={showDeleteModal}
86
				closeModal={closeDeleteModal}
97
				closeModal={closeDeleteModal}
87
				url={actionLink}
98
				url={actionLink}
88
				action={getData}
99
				action={getData}