Sha256: cd447aba2abc8eb66c7fb24c6d21bf12056df50d5d93608d4febeeeb3836be37
Contents?: true
Size: 1.25 KB
Versions: 31
Compression:
Stored size: 1.25 KB
Contents
import React from 'react'; import PropTypes from 'prop-types'; import { Modal, Icon, noop } from 'patternfly-react'; import { translate as __ } from 'foremanReact/common/I18n'; import Terminal from '../Terminal'; import './fullScreenModal.scss'; const FullScreenModal = ({ showFullScreen, toggleFullScreen, terminalProps, }) => ( <Modal id="full-screen-terminal" show={showFullScreen} onHide={toggleFullScreen} > <Modal.Header> <button className="close" onClick={toggleFullScreen} aria-hidden="true" aria-label="Close" > <Icon type="pf" name="close" /> </button> <Modal.Title>{__('Full Screen')}</Modal.Title> </Modal.Header> <Modal.Body> <Terminal autoScroll={false} {...terminalProps} /> </Modal.Body> </Modal> ); FullScreenModal.propTypes = { showFullScreen: PropTypes.bool, toggleFullScreen: PropTypes.func, terminalProps: PropTypes.shape({ exitCode: PropTypes.string, logs: PropTypes.oneOfType([ PropTypes.arrayOf(PropTypes.string), PropTypes.string, ]), error: PropTypes.string, }), }; FullScreenModal.defaultProps = { showFullScreen: false, toggleFullScreen: noop, terminalProps: {}, }; export default FullScreenModal;
Version data entries
31 entries across 31 versions & 1 rubygems