import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { icons } from 'Helpers/Props'; import FieldSet from 'Components/FieldSet'; import Icon from 'Components/Icon'; import Link from 'Components/Link/Link'; import PageSectionContent from 'Components/Page/PageSectionContent'; import RemotePathMapping from './RemotePathMapping'; import EditRemotePathMappingModalConnector from './EditRemotePathMappingModalConnector'; import styles from './RemotePathMappings.css'; class RemotePathMappings extends Component { // // Lifecycle constructor(props, context) { super(props, context); this.state = { isAddRemotePathMappingModalOpen: false }; } // // Listeners onAddRemotePathMappingPress = () => { this.setState({ isAddRemotePathMappingModalOpen: true }); } onModalClose = () => { this.setState({ isAddRemotePathMappingModalOpen: false }); } // // Render render() { const { items, onConfirmDeleteRemotePathMapping, ...otherProps } = this.props; return (
Host
Remote Path
Local Path
{ items.map((item, index) => { return ( ); }) }
); } } RemotePathMappings.propTypes = { isFetching: PropTypes.bool.isRequired, error: PropTypes.object, items: PropTypes.arrayOf(PropTypes.object).isRequired, onConfirmDeleteRemotePathMapping: PropTypes.func.isRequired }; export default RemotePathMappings;