mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-20 19:02:15 +00:00
refactor(SearchBar): add core suspender fallback
This commit is contained in:
parent
ea5e0f8c27
commit
7713d6579d
1 changed files with 14 additions and 1 deletions
|
|
@ -70,4 +70,17 @@ SearchBar.propTypes = {
|
|||
active: PropTypes.bool
|
||||
};
|
||||
|
||||
module.exports = withCoreSuspender(SearchBar);
|
||||
const SearchBarFallback = ({ className }) => (
|
||||
<label className={classnames(className, styles['search-bar-container'])}>
|
||||
<div className={styles['search-input']}>
|
||||
<div className={styles['placeholder-label']}>Search or paste link</div>
|
||||
</div>
|
||||
<Button className={styles['submit-button-container']} tabIndex={-1}>
|
||||
<Icon className={styles['icon']} icon={'ic_search_link'} />
|
||||
</Button>
|
||||
</label>
|
||||
);
|
||||
|
||||
SearchBarFallback.propTypes = SearchBar.propTypes;
|
||||
|
||||
module.exports = withCoreSuspender(SearchBar, SearchBarFallback);
|
||||
|
|
|
|||
Loading…
Reference in a new issue