diff --git a/bigbluebutton-html5/imports/ui/components/user-info/component.jsx b/bigbluebutton-html5/imports/ui/components/user-info/component.jsx index 2ddcd93c81..64494952c9 100644 --- a/bigbluebutton-html5/imports/ui/components/user-info/component.jsx +++ b/bigbluebutton-html5/imports/ui/components/user-info/component.jsx @@ -6,7 +6,7 @@ import Modal from '/imports/ui/components/modal/simple/component'; import Service from './service'; -import { styles } from './styles'; +import Styled from './styles'; const propTypes = { intl: PropTypes.object.isRequired, @@ -29,26 +29,26 @@ class UserInfoComponent extends Component { const key = Object.keys(info)[0]; return ( - {key} - {info[key]} + {key} + {info[key]} ); }); if (array.length > 1) { infoList.unshift( - {`User ${index + 1}`} + {`User ${index + 1}`} , ); } return infoList; }); return ( - + {userInfoList} -
+ ); } diff --git a/bigbluebutton-html5/imports/ui/components/user-info/styles.js b/bigbluebutton-html5/imports/ui/components/user-info/styles.js new file mode 100644 index 0000000000..3ead0b6482 --- /dev/null +++ b/bigbluebutton-html5/imports/ui/components/user-info/styles.js @@ -0,0 +1,33 @@ +import styled from 'styled-components'; +import { mdPaddingX, borderSize } from '/imports/ui/stylesheets/styled-components/general'; +import { colorGrayLighter } from '/imports/ui/stylesheets/styled-components/palette'; + +const KeyCell = styled.td` + padding: ${mdPaddingX}; + border: ${borderSize} solid ${colorGrayLighter}; +`; + +const ValueCell = styled.td` + padding: ${mdPaddingX}; + border: ${borderSize} solid ${colorGrayLighter}; +`; + +const UserInfoTable = styled.table` + border: ${borderSize} solid ${colorGrayLighter}; + border-collapse: collapse; + border: none; + + width: 90%; + margin: auto; + + table-layout: fixed; + + & > td { + word-wrap: break-word; + }`; + +export default { + KeyCell, + ValueCell, + UserInfoTable, +}; diff --git a/bigbluebutton-html5/imports/ui/components/user-info/styles.scss b/bigbluebutton-html5/imports/ui/components/user-info/styles.scss deleted file mode 100644 index eeb728f50f..0000000000 --- a/bigbluebutton-html5/imports/ui/components/user-info/styles.scss +++ /dev/null @@ -1,21 +0,0 @@ -.keyCell, .valueCell, .userInfoTable { - border: var(--border-size) solid var(--color-gray-lighter); -} - -.userInfoTable { - border-collapse: collapse; - border: none; - - width: 90%; - margin: auto; - - table-layout: fixed; - - td { - word-wrap: break-word; - } -} - -.keyCell, .valueCell { - padding: var(--md-padding-x); -}