Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 6026 Rev 8467
Línea 1... Línea 1...
1
import React from 'react'
1
import React from 'react'
-
 
2
import IndustryModal from './IndustryModal';
Línea 2... Línea 3...
2
 
3
 
-
 
4
const Industry = ({ industry, industryUrl }) => {
-
 
5
 
-
 
6
    const [isShowModal, setIsShowModal] = useState(false);
-
 
7
    const [industryState, setIndustryState] = useState(industry);
-
 
8
 
-
 
9
    const closeModal = () => setIsShowModal(false)
Línea 3... Línea -...
3
const Industry = ({ industry }) => {
-
 
4
 
10
    const showModal = () => setIsShowModal(true)
-
 
11
 
5
    const editIndustry = () => { }
12
    return (
6
    return (
13
        <>
7
        <div className="user-profile-ov">
14
            <div className="user-profile-ov">
8
            <h3>
15
                <h3>
9
                Industria
16
                    Industria
10
                <button
17
                    <button
11
                    className="btn btn-industry-edit"
18
                        className="btn btn-industry-edit"
12
                    onClick={editIndustry}
19
                        onClick={showModal}
13
                >
20
                    >
14
                    <i className="fa fa-pencil" />
21
                        <i className="fa fa-pencil" />
15
                </button>
22
                    </button>
-
 
23
                </h3>
-
 
24
                <span id="overview-industry">{industryState}</span>
-
 
25
            </div>
-
 
26
            <IndustryModal
-
 
27
                action={setIndustryState}
-
 
28
                editUrl={industryUrl}
-
 
29
                closeModal={closeModal}
16
            </h3>
30
                isOpen={isShowModal}
17
            <span id="overview-industry">{industry}</span>
31
            />
18
        </div>
32
        </>
Línea 19... Línea 33...
19
    )
33
    )
20
}
34
}