Rev 6731 | Rev 6734 | Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
import React, { useState } from 'react'import { useSelector } from 'react-redux'import withSearch from '../../HOC/withSearch'import TitleSection from '../../components/UI/TitleSection'import ProfileItemList from '../../components/profile-item/ProfileItemList'import AddProfileModal from '../../components/modals/AddProfileModal'const MyProfilesPage = () => {const [isShowAddModal, setIsShowAddModal] = useState(false)const labels = useSelector(({ intl }) => intl.labels)const WithSearchConnections = withSearch(ProfileItemList,'profile/my-profiles')const toggleModal = () => {setIsShowAddModal(!isShowAddModal)}return (<main className="companies-info container"><TitleSectiontitle={labels.my_profiles}onAdd={toggleModal}addLabel={labels.add}/><WithSearchConnections /><AddProfileModalshow={isShowAddModal}getProfiles={() => null}onHide={toggleModal}/></main>)}export default MyProfilesPage