From 203a66a90486f0aafee71181504cb447ebb62503 Mon Sep 17 00:00:00 2001 From: Vasek Mlejnsky Date: Wed, 29 Aug 2018 11:33:17 +0200 Subject: [PATCH] Add option to import AsyncSelect --- src/components/Select/index.js | 25 ++++++++----------- .../Landing/components/InstallBridge/index.js | 2 +- 2 files changed, 11 insertions(+), 16 deletions(-) diff --git a/src/components/Select/index.js b/src/components/Select/index.js index 4b7c387f..c872d100 100644 --- a/src/components/Select/index.js +++ b/src/components/Select/index.js @@ -1,7 +1,7 @@ import React from 'react'; import PropTypes from 'prop-types'; -import Select from 'react-select'; -import AsyncSelect from 'react-select/lib/Async'; +import ReactSelect from 'react-select'; +import ReactAsyncSelect from 'react-select/lib/Async'; import colors from 'config/colors'; const styles = isSearchable => ({ @@ -58,21 +58,16 @@ const styles = isSearchable => ({ }), }); -const SelectWrapper = props => ( -
- {props.isAsync && } - {!props.isAsync &&