|
@@ -1,5 +1,6 @@
|
1
|
1
|
// @flow
|
2
|
2
|
|
|
3
|
+import { makeStyles } from '@material-ui/styles';
|
3
|
4
|
import React from 'react';
|
4
|
5
|
|
5
|
6
|
import { translate } from '../../../base/i18n';
|
|
@@ -46,6 +47,53 @@ type Props = {
|
46
|
47
|
t: Function,
|
47
|
48
|
};
|
48
|
49
|
|
|
50
|
+const useStyles = makeStyles(theme => {
|
|
51
|
+ return {
|
|
52
|
+ dialInDialog: {
|
|
53
|
+ textAlign: 'center',
|
|
54
|
+
|
|
55
|
+ '& .prejoin-dialog-dialin-header': {
|
|
56
|
+ alignItems: 'center',
|
|
57
|
+ margin: `${theme.spacing(3)}px 0 ${theme.spacing(5)}px ${theme.spacing(3)}px`,
|
|
58
|
+ display: 'flex'
|
|
59
|
+ },
|
|
60
|
+ '& .prejoin-dialog-dialin-icon': {
|
|
61
|
+ marginRight: theme.spacing(3)
|
|
62
|
+ },
|
|
63
|
+ '& .prejoin-dialog-dialin-num': {
|
|
64
|
+ background: '#3e474f',
|
|
65
|
+ borderRadius: '4px',
|
|
66
|
+ display: 'inline-block',
|
|
67
|
+ fontSize: '15px',
|
|
68
|
+ lineHeight: '24px',
|
|
69
|
+ margin: theme.spacing(1),
|
|
70
|
+ padding: theme.spacing(2),
|
|
71
|
+
|
|
72
|
+ '& .prejoin-dialog-dialin-num-container': {
|
|
73
|
+ minHeight: '48px',
|
|
74
|
+ margin: `${theme.spacing(2)}px 0`
|
|
75
|
+ }
|
|
76
|
+ },
|
|
77
|
+
|
|
78
|
+ '& .prejoin-dialog-dialin-link': {
|
|
79
|
+ color: '#6FB1EA',
|
|
80
|
+ cursor: 'pointer',
|
|
81
|
+ display: 'inline-block',
|
|
82
|
+ fontSize: '13px',
|
|
83
|
+ lineHeight: '20px',
|
|
84
|
+ marginBottom: theme.spacing(4)
|
|
85
|
+ },
|
|
86
|
+ '& .prejoin-dialog-dialin-spaced-label': {
|
|
87
|
+ marginBottom: theme.spacing(3),
|
|
88
|
+ marginTop: '28px'
|
|
89
|
+ },
|
|
90
|
+ '& .prejoin-dialog-dialin-btns > div': {
|
|
91
|
+ marginBottom: theme.spacing(3)
|
|
92
|
+ }
|
|
93
|
+ }
|
|
94
|
+ };
|
|
95
|
+});
|
|
96
|
+
|
49
|
97
|
/**
|
50
|
98
|
* This component displays the dialog with all the information
|
51
|
99
|
* to join a meeting by calling it.
|
|
@@ -63,12 +111,13 @@ function DialinDialog(props: Props) {
|
63
|
111
|
passCode,
|
64
|
112
|
t
|
65
|
113
|
} = props;
|
|
114
|
+ const classes = useStyles();
|
66
|
115
|
const flagClassName = `prejoin-dialog-flag iti-flag ${getCountryCodeFromPhone(
|
67
|
116
|
number
|
68
|
117
|
)}`;
|
69
|
118
|
|
70
|
119
|
return (
|
71
|
|
- <div className = 'prejoin-dialog-dialin'>
|
|
120
|
+ <div className = { classes.dialInDialog }>
|
72
|
121
|
<div className = 'prejoin-dialog-dialin-header'>
|
73
|
122
|
<Icon
|
74
|
123
|
className = 'prejoin-dialog-icon prejoin-dialog-dialin-icon'
|