Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 8022 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 8022 Rev 11131
Línea 1... Línea -...
1
import React from 'react'
-
 
2
import { useEffect } from 'react'
-
 
3
import { useState } from 'react'
1
import React, { useState } from 'react'
4
import SearchLocationInput from '../../../shared/SearchLocationInput'
2
import SearchLocationInput from '../../../shared/SearchLocationInput'
5
import SubmitModal from './SubmitModal'
3
import SubmitModal from './SubmitModal'
Línea 6... Línea 4...
6
 
4
 
7
const LocationModal = ({
5
const LocationModal = ({
8
    closeModal,
6
	closeModal,
9
    dataLink,
7
	dataLink,
10
    googleApiKey
8
	googleApiKey
Línea 11... Línea 9...
11
}) => {
9
}) => {
12
 
10
 
Línea 13... Línea 11...
13
    const [value, setValue] = useState('')
11
	const [value, setValue] = useState('')
14
    const [data, setData] = useState({})
12
	const [data, setData] = useState({})
15
 
13
 
16
    return (
14
	return (
17
        <SubmitModal
15
		<SubmitModal
18
            title='Ubicación'
16
			title='Ubicación'
19
            closeModal={closeModal}
17
			closeModal={closeModal}
20
            submitData={data}
18
			submitData={data}
21
            postLink={dataLink}
19
			postLink={dataLink}
22
        >
20
		>
23
            <SearchLocationInput
21
			<SearchLocationInput
24
                value={value}
22
				value={value}
25
                setValue={setValue}
23
				setValue={setValue}
26
                googleApiKey={googleApiKey}
24
				googleApiKey={googleApiKey}
27
                updateData={setData}
25
				updateData={setData}
28
            />
26
			/>
29
        </SubmitModal>
27
		</SubmitModal>
30
    )
28
	)