|
1 | 1 | import React, {Component} from 'react'; |
2 | | -import {Modal, Button, Form, Row} from 'react-bootstrap'; |
| 2 | +import {Modal, Button, Form, Row, Col} from 'react-bootstrap'; |
3 | 3 | import {JitsiMeet} from './Jitsi'; |
4 | 4 | import "./jitsi.scss"; |
5 | 5 |
|
@@ -31,39 +31,47 @@ export class Info extends Component{ |
31 | 31 | {...this.props} |
32 | 32 | size="md" |
33 | 33 | aria-labelledby="contained-modal-title-vcenter" |
| 34 | + className="modal" |
34 | 35 | centered> |
35 | | - <div className="container"> |
36 | | - <Modal.Header closeButton className="heading border border-0 p-0"> |
| 36 | + |
| 37 | + <Modal.Header closeButton className="modal__header"> |
37 | 38 | <Modal.Title id="contained-modal-title-vcenter"> |
38 | 39 | <div className="title">Info</div> |
39 | 40 | <div className="about">Enter your name and a roomID</div> |
40 | 41 | </Modal.Title> |
41 | 42 | </Modal.Header> |
42 | | - <Modal.Body> |
43 | | - <Row className="form-content"> |
44 | | - <Form.Label className="label">Your Name</Form.Label> |
45 | | - <Form.Control className="form-input" |
46 | | - type="text" placeholder="Name.." size="sm" |
47 | | - onChange={event => this.handleChange(event, "user")} |
48 | | - required/> |
49 | | - </Row> |
50 | | - <Row className="form-content"> |
51 | | - <Form.Label className="label">Room ID</Form.Label> |
52 | | - <Form.Control className="form-input" |
53 | | - type="text" placeholder="RoomID.." size="sm" |
54 | | - onChange={event => this.handleChange(event, "roomID")} |
55 | | - required/> |
56 | | - </Row> |
| 43 | + <Modal.Body className="modal__body"> |
| 44 | + <Form className="modal__form"> |
| 45 | + <Form.Row className="modal__row"> |
| 46 | + <Form.Group className="modal__group" as={Col}> |
| 47 | + <Form.Label className="label">Your Name</Form.Label> |
| 48 | + <Form.Control className="modal__post" |
| 49 | + type="text" placeholder="Name.." size="sm" |
| 50 | + onChange={event => this.handleChange(event, "user")} |
| 51 | + required/> |
| 52 | + </Form.Group> |
| 53 | + </Form.Row> |
| 54 | + <Form.Row className="modal__row"> |
| 55 | + <Form.Group className="modal__group" as={Col}> |
| 56 | + <Form.Label className="label">Room ID</Form.Label> |
| 57 | + <Form.Control className="modal__post" |
| 58 | + type="text" placeholder="RoomID.." size="sm" |
| 59 | + onChange={event => this.handleChange(event, "roomID")} |
| 60 | + required/> |
| 61 | + </Form.Group> |
| 62 | + </Form.Row> |
| 63 | + </Form> |
57 | 64 | </Modal.Body> |
58 | | - <div className="form-footer"> |
| 65 | + <div className="modal__buttons"> |
59 | 66 | <Button onClick={() => this.setState({startJitsi:true})} |
60 | | - disabled={this.state.disable} className="savebtn">Join Call</Button> |
| 67 | + disabled={this.state.disable} className="modal__save"> |
| 68 | + <span className="modal__buttontext">Join</span></Button> |
61 | 69 | {this.state.startJitsi ? <JitsiMeet show={this.state.startJitsi} |
62 | 70 | onHide={this.closeJitsi} user={this.state.user} |
63 | 71 | roomID={this.state.roomID}/> : null} |
64 | | - <Button variant="outline-primary" onClick={this.props.onHide}>Cancel</Button> |
| 72 | + <Button className="modal__cancel" variant="outline-primary" onClick={this.props.onHide}> |
| 73 | + <span className="modal__buttontext">Cancel</span></Button> |
65 | 74 | </div> |
66 | | - </div> |
67 | 75 | </Modal> |
68 | 76 | ); |
69 | 77 | } |
|
0 commit comments