Spaces:
Running
Running
File size: 2,390 Bytes
6bcb42f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
import {FormattedMessage} from 'react-intl';
import PropTypes from 'prop-types';
import React from 'react';
import classNames from 'classnames';
import Box from '../box/box.jsx';
import Dots from './dots.jsx';
import bluetoothIcon from './icons/bluetooth-white.svg';
import closeIcon from '../close-button/icon--close.svg';
import styles from './connection-modal.css';
const ConnectingStep = props => (
<Box className={styles.body}>
<Box className={styles.activityArea}>
<Box className={styles.centeredRow}>
<div className={styles.peripheralActivity}>
<img
className={styles.peripheralActivityIcon}
src={props.connectionIconURL}
/>
<img
className={styles.bluetoothConnectingIcon}
src={bluetoothIcon}
/>
</div>
</Box>
</Box>
<Box className={styles.bottomArea}>
<Box className={classNames(styles.bottomAreaItem, styles.instructions)}>
{props.connectingMessage}
</Box>
<Dots
className={styles.bottomAreaItem}
counter={1}
total={3}
/>
<div className={classNames(styles.bottomAreaItem, styles.segmentedButton)}>
<button
disabled
className={styles.connectionButton}
>
<FormattedMessage
defaultMessage="Connecting..."
description="Label indicating that connection is in progress"
id="gui.connection.connecting-cancelbutton"
/>
</button>
<button
className={styles.connectionButton}
onClick={props.onDisconnect}
>
<img
className={styles.abortConnectingIcon}
src={closeIcon}
/>
</button>
</div>
</Box>
</Box>
);
ConnectingStep.propTypes = {
connectingMessage: PropTypes.node.isRequired,
connectionIconURL: PropTypes.string.isRequired,
onDisconnect: PropTypes.func
};
export default ConnectingStep;
|