From 569b2969d530f08e55798c5cb3079948c7c037cd Mon Sep 17 00:00:00 2001
From: Noah Loomans <noahloomans@gmail.com>
Date: Thu, 14 Dec 2017 18:54:00 +0100
Subject: Use .js extention instead of .jsx

---
 src/client/react/components/container/Results.jsx | 35 -----------------------
 1 file changed, 35 deletions(-)
 delete mode 100644 src/client/react/components/container/Results.jsx

(limited to 'src/client/react/components/container/Results.jsx')

diff --git a/src/client/react/components/container/Results.jsx b/src/client/react/components/container/Results.jsx
deleted file mode 100644
index 911ea27..0000000
--- a/src/client/react/components/container/Results.jsx
+++ /dev/null
@@ -1,35 +0,0 @@
-import React from 'react';
-import PropTypes from 'prop-types';
-import { connect } from 'react-redux';
-import classnames from 'classnames';
-import Result from '../presentational/Result';
-
-const Results = (({ results, isExactMatch, selectedResult }) => (
-  <div
-    className={classnames('search__results', {
-      'search__results--has-results': !isExactMatch && results.length > 0,
-    })}
-  >
-    {!isExactMatch && results.map(userId => (
-      <Result key={userId} userId={userId} isSelected={userId === selectedResult} />
-    ))}
-  </div>
-));
-
-Results.propTypes = {
-  results: PropTypes.arrayOf(PropTypes.string).isRequired,
-  isExactMatch: PropTypes.bool.isRequired,
-  selectedResult: PropTypes.string,
-};
-
-Results.defaultProps = {
-  selectedResult: null,
-};
-
-const mapStateToProps = state => ({
-  results: state.search.results,
-  isExactMatch: state.search.isExactMatch,
-  selectedResult: state.search.selectedResult,
-});
-
-export default connect(mapStateToProps)(Results);
-- 
cgit v1.1

