mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-29 11:26:25 -05:00
Using Modal to display Hotspot QR Code.
This commit is contained in:
parent
61f0e48e62
commit
9aeda34672
1 changed files with 13 additions and 11 deletions
|
|
@ -10,6 +10,7 @@ import {
|
|||
Icon,
|
||||
Input,
|
||||
Loader,
|
||||
Modal,
|
||||
Placeholder,
|
||||
Table
|
||||
} from "semantic-ui-react";
|
||||
|
|
@ -199,18 +200,19 @@ class Settings extends React.Component {
|
|||
/>
|
||||
</Form.Field>
|
||||
<Form.Field>
|
||||
<div hidden={!this.state.qrHidden}>
|
||||
<Button icon onClick={(e) => this.toggleQRCode(e)}>
|
||||
<Icon name='qrcode' size='big'/>
|
||||
</Button>
|
||||
</div>
|
||||
<div hidden={this.state.qrHidden}>
|
||||
<h3>Scan this QR Code to join hotspot</h3>
|
||||
<br/>
|
||||
<a onClick={this.toggleQRCode}>
|
||||
<Modal closeIcon
|
||||
onClose={this.toggleQRCode}
|
||||
onOpen={this.toggleQRCode}
|
||||
open={!this.state.qrHidden}
|
||||
trigger={<Button icon><Icon name='qrcode' size='big'/></Button>}
|
||||
>
|
||||
<Modal.Header>
|
||||
Scan this code to join the hotspot
|
||||
</Modal.Header>
|
||||
<Modal.Content>
|
||||
<QRCode value={qrCodeValue} size={300}/>
|
||||
</a>
|
||||
</div>
|
||||
</Modal.Content>
|
||||
</Modal>
|
||||
</Form.Field>
|
||||
</Form.Group>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue