refactor(prejoin) use jss instead of sass in CallingDialog (#11117)

This commit is contained in:
Shahab 2022-03-15 14:46:01 +03:30 committed by GitHub
parent 052b588b33
commit 985b37195c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 21 deletions

View File

@ -165,23 +165,3 @@
}
}
}
.prejoin-dialog-calling {
padding: 16px;
text-align: center;
&-header {
text-align: right;
}
&-label {
font-size: 15px;
margin: 8px 0 16px 0;
}
&-number {
font-size: 19px;
line-height: 28px;
margin: 16px 0;
}
}

View File

@ -1,5 +1,6 @@
// @flow
import { makeStyles } from '@material-ui/styles';
import React from 'react';
import { Avatar } from '../../../base/avatar';
@ -35,6 +36,30 @@ type Props = {
t: Function,
};
const useStyles = makeStyles(theme => {
return {
callingDialog: {
padding: theme.spacing(3),
textAlign: 'center',
'& .prejoin-dialog-calling-header': {
textAlign: 'right'
},
'& .prejoin-dialog-calling-label': {
fontSize: '15px',
margin: `${theme.spacing(2)}px 0 ${theme.spacing(3)}px 0`
},
'& .prejoin-dialog-calling-number': {
fontSize: '19px',
lineHeight: '28px',
margin: `${theme.spacing(3)}px 0`
}
}
};
});
/**
* Dialog displayed when the user gets called by the meeting.
*
@ -43,9 +68,10 @@ type Props = {
*/
function CallingDialog(props: Props) {
const { number, onClose, status, t } = props;
const classes = useStyles();
return (
<div className = 'prejoin-dialog-calling'>
<div className = { classes.callingDialog }>
<div className = 'prejoin-dialog-calling-header'>
<Icon
className = 'prejoin-dialog-icon'