summaryrefslogtreecommitdiff
path: root/scraper/client/search/search.results.js
diff options
context:
space:
mode:
Diffstat (limited to 'scraper/client/search/search.results.js')
-rw-r--r--scraper/client/search/search.results.js49
1 files changed, 0 insertions, 49 deletions
diff --git a/scraper/client/search/search.results.js b/scraper/client/search/search.results.js
deleted file mode 100644
index 8b9e0c5e..00000000
--- a/scraper/client/search/search.results.js
+++ /dev/null
@@ -1,49 +0,0 @@
-import React, { Component } from 'react'
-import { Link, withRouter } from 'react-router-dom'
-import { bindActionCreators } from 'redux'
-import { connect } from 'react-redux'
-import * as querystring from 'querystring'
-
-import { Keyframes } from '../common'
-import * as searchActions from './search.actions'
-
-function SearchResults({ query, results, options }) {
- if (!query || query.reset || query.loading || !results) {
- return <div></div>
- }
- if (!query.loading && !results.length) {
- return <div className='searchResults'><h3>No results</h3></div>
- }
- return (
- <div className="searchResults">
- <div className='searchResultsHeading row'>
- <div className='column'>
- <h3>Search Results</h3>
- <small className="subtitle">
- {'Searched 10,523,176 frames from 576,234 videos (took '}{query.timing.toFixed(2)}{' ms)'}
- </small>
- </div>
- </div>
- <Keyframes
- frames={results}
- showHash
- showTimestamp={options.groupByHash}
- showSearchButton
- showSaveButton
- groupByHash={options.groupByHash}
- />
- </div>
- )
-}
-
-const mapStateToProps = state => ({
- query: state.search.query.query,
- results: state.search.query.results,
- options: state.search.options,
-})
-
-const mapDispatchToProps = dispatch => ({
- searchActions: bindActionCreators({ ...searchActions }, dispatch),
-})
-
-export default withRouter(connect(mapStateToProps, mapDispatchToProps)(SearchResults))