From 77dccd31b32ee0a9a53b2186bae231069c5ab152 Mon Sep 17 00:00:00 2001
From: Noah Loomans <noahloomans@gmail.com>
Date: Sat, 6 Jan 2018 12:11:19 +0100
Subject: Revert "Move to typescript"

This reverts commit f0c8cf0e79f003514fd65a70def5820205955a77.
---
 src/client/react/components/container/Results.tsx | 26 -----------------------
 1 file changed, 26 deletions(-)
 delete mode 100644 src/client/react/components/container/Results.tsx

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

diff --git a/src/client/react/components/container/Results.tsx b/src/client/react/components/container/Results.tsx
deleted file mode 100644
index 21d3378..0000000
--- a/src/client/react/components/container/Results.tsx
+++ /dev/null
@@ -1,26 +0,0 @@
-import * as React from 'react';
-import { connect } from 'react-redux';
-import * as classnames from 'classnames';
-import Result from '../presentational/Result';
-import { User } from '../../users';
-import { State } from '../../reducers';
-
-const Results: React.StatelessComponent<{ results: string[], isExactMatch: boolean, selectedResult: string }> = (props) => (
-  <div
-    className={classnames('search__results', {
-      'search__results--has-results': !props.isExactMatch && props.results.length > 0,
-    })}
-  >
-    {!props.isExactMatch && props.results.map(userId => (
-      <Result key={userId} userId={userId} isSelected={userId === props.selectedResult} />
-    ))}
-  </div>
-);
-
-const mapStateToProps = (state: State) => ({
-  results: state.search.results,
-  isExactMatch: state.search.isExactMatch,
-  selectedResult: state.search.selectedResult,
-});
-
-export default connect(mapStateToProps)(Results);
-- 
cgit v1.1

