Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 7774 Rev 7775
Línea 4... Línea 4...
4
const Location = ({ locations = [], googleApiKey, locationsAddUrl }) => {
4
const Location = ({ locations = [], googleApiKey, locationsAddUrl }) => {
Línea 5... Línea 5...
5
 
5
 
6
    const [actionUrl, setActionUrl] = useState(locationsAddUrl)
6
    const [actionUrl, setActionUrl] = useState(locationsAddUrl)
Línea -... Línea 7...
-
 
7
    const [showModal, setShowModal] = useState(false)
-
 
8
 
-
 
9
    const addLocation = (url) => {
-
 
10
        setShowModal(true)
-
 
11
        setActionUrl(url)
7
    const [showModal, setShowModal] = useState(false)
12
    }
8
 
13
 
9
    const editLocation = (url) => {
14
    const editLocation = (url) => {
10
        setShowModal(true)
15
        setShowModal(true)
Línea 18... Línea 23...
18
    return (
23
    return (
19
        <>
24
        <>
20
            <div className="user-profile-extended-ov st2">
25
            <div className="user-profile-extended-ov st2">
21
                <h3>
26
                <h3>
22
                    Ubicaciones
27
                    Ubicaciones
-
 
28
                    <button
23
                    <button className="btn btn-location-add">
29
                        className="btn btn-location-add"
-
 
30
                        onClick={() => addLocation(locationsAddUrl)}
-
 
31
                    >
24
                        <i className="fa fa-plus-square" />
32
                        <i className="fa fa-plus-square" />
25
                    </button>
33
                    </button>
26
                </h3>
34
                </h3>
27
                <span id="locations-records">
35
                <span id="locations-records">
28
                    {
36
                    {