forked from bigbluebutton/bbb-playback
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from mconf/develop
chore: update from develop
- Loading branch information
Showing
12 changed files
with
179 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import React from 'react'; | ||
import Item from './item'; | ||
import { CONTENT } from 'utils/constants'; | ||
import './index.scss'; | ||
|
||
const Data = ({ data }) => { | ||
|
||
return ( | ||
<div className="data-wrapper"> | ||
{CONTENT.map((item) => ( | ||
<Item | ||
icon={item} | ||
key={item} | ||
value={data[item]} | ||
/> | ||
))} | ||
</div> | ||
); | ||
}; | ||
|
||
export default Data; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
@import 'src/styles/icons'; | ||
@import 'src/styles/sizes'; | ||
|
||
.data-wrapper { | ||
display: flex; | ||
flex-wrap: wrap; | ||
justify-content: space-evenly; | ||
overflow-x: hidden; | ||
overflow-y: auto; | ||
|
||
.item { | ||
box-sizing: border-box; | ||
color: var(--loader-color); | ||
display: flex; | ||
font-size: xx-large; | ||
font-weight: var(--font-weight-semi-bold); | ||
padding: $padding; | ||
opacity: .5; | ||
} | ||
|
||
.loaded { | ||
opacity: 1; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import cx from 'classnames'; | ||
import './index.scss'; | ||
|
||
const propTypes = { | ||
icon: PropTypes.string, | ||
value: PropTypes.oneOfType([ | ||
PropTypes.bool, | ||
PropTypes.string, | ||
]), | ||
}; | ||
|
||
const defaultProps = { | ||
icon: '', | ||
value: false, | ||
}; | ||
|
||
const Item = ({ | ||
icon, | ||
value, | ||
}) => { | ||
|
||
return ( | ||
<div className={cx('item', { loaded: value })}> | ||
<div className={`icon-${icon}`} /> | ||
</div> | ||
); | ||
}; | ||
|
||
Item.propTypes = propTypes; | ||
Item.defaultProps = defaultProps; | ||
|
||
export default Item; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters