diff --git a/client/app/components/SearchRequest.jsx b/client/app/components/SearchRequest.jsx index 38b1cfb..b541f8d 100644 --- a/client/app/components/SearchRequest.jsx +++ b/client/app/components/SearchRequest.jsx @@ -9,6 +9,8 @@ import movieStyle from './styles/movieObjectStyle.jsx'; import URI from 'urijs'; import InfiniteScroll from 'react-infinite-scroller'; +var MediaQuery = require('react-responsive'); + // TODO add option for searching multi, movies or tv shows class SearchRequest extends React.Component { constructor(props){ @@ -36,7 +38,7 @@ class SearchRequest extends React.Component { this.URLs = { searchRequest: 'https://apollo.kevinmidboe.com/api/v1/plex/request', - // request: 'http://localhost:31459/api/v1/plex/request?page='+this.state.page+'&query=', + // searchRequest: 'http://localhost:31459/api/v1/plex/request', upcoming: 'https://apollo.kevinmidboe.com/api/v1/tmdb/upcoming', // upcoming: 'http://localhost:31459/api/v1/tmdb/upcoming', sendRequest: 'https://apollo.kevinmidboe.com/api/v1/plex/request?query=' @@ -379,35 +381,63 @@ class SearchRequest extends React.Component { loader={loader} initialLoad={this.state.loadResults}> -
-
-
- Request new content -
+ +
+
+
+ Request new content +
+ +
+
+ -
-
- - - this._handleQueryKeyPress(event)} - onChange={event => this.updateQueryState(event)} - value={this.state.searchQuery}/> + this._handleQueryKeyPress(event)} + onChange={event => this.updateQueryState(event)} + value={this.state.searchQuery}/> +
-
-
- -

{this.state.resultHeader}

- - {this.state.responseMovieList} +
+ {this.state.resultHeader} +



+ + {this.state.responseMovieList} +
- -
+ + + +
+
+
+ Request new content +
+ +
+
+ + + this._handleQueryKeyPress(event)} + onChange={event => this.updateQueryState(event)} + value={this.state.searchQuery}/> + +
+
+
+ +
+ {this.state.resultHeader} +



+ + {this.state.responseMovieList} +
-
+ ) }