Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <Query query={ALL_BOT_ITEMS_QUERY}>
- {({loading, error, data}) => {
- if(loading) return <div className="preloader show"></div>
- if(error) return <p>Error: {error}</p>
- return (
- <Scrollbars style={{height: '570px'}}>
- {data.allBotItems.map(item => {
- if(this.props.bot.choosenItemsIds.indexOf(item.id) === -1) {
- return <Item key={item.id} item={item} conditions={this.state.conditions} side='bot' />
- }
- })}
- </Scrollbars>
- )
- }}
- </Query>
Add Comment
Please, Sign In to add comment