mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
StreamPlaceholder moved inside Stream
This commit is contained in:
parent
b86cf17ea7
commit
29a1127e93
5 changed files with 6 additions and 4 deletions
|
|
@ -3,6 +3,7 @@ const PropTypes = require('prop-types');
|
|||
const classnames = require('classnames');
|
||||
const Icon = require('stremio-icons/dom');
|
||||
const { Button } = require('stremio/common');
|
||||
const StreamPlaceholder = require('./StreamPlaceholder');
|
||||
const styles = require('./styles');
|
||||
|
||||
const Stream = ({ className, id, addon, description, progress, onClick }) => {
|
||||
|
|
@ -34,7 +35,9 @@ const Stream = ({ className, id, addon, description, progress, onClick }) => {
|
|||
}
|
||||
</Button>
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
Stream.Placeholder = StreamPlaceholder;
|
||||
|
||||
Stream.propTypes = {
|
||||
className: PropTypes.string,
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@ const classnames = require('classnames');
|
|||
const Icon = require('stremio-icons/dom');
|
||||
const { Button } = require('stremio/common');
|
||||
const Stream = require('./Stream');
|
||||
const StreamPlaceholder = require('./StreamPlaceholder');
|
||||
const styles = require('./styles');
|
||||
|
||||
const StreamsList = ({ className, streamsGroups }) => {
|
||||
|
|
@ -30,8 +29,8 @@ const StreamsList = ({ className, streamsGroups }) => {
|
|||
<div className={styles['message-label']}>No streams were found</div>
|
||||
:
|
||||
<React.Fragment>
|
||||
<StreamPlaceholder className={styles['stream']} />
|
||||
<StreamPlaceholder className={styles['stream']} />
|
||||
<Stream.Placeholder className={styles['stream']} />
|
||||
<Stream.Placeholder className={styles['stream']} />
|
||||
</React.Fragment>
|
||||
}
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue