From b2df1339b8cf8ab784b38c7ccc77d9f67e9f7bc4 Mon Sep 17 00:00:00 2001 From: Vasek Mlejnsky Date: Tue, 28 Aug 2018 10:22:05 +0200 Subject: [PATCH] Add a prop to import async select from 'react-select' --- src/components/Select/index.js | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/src/components/Select/index.js b/src/components/Select/index.js index 0c45ba21..61449ded 100644 --- a/src/components/Select/index.js +++ b/src/components/Select/index.js @@ -1,5 +1,7 @@ import React from 'react'; +import PropTypes from 'prop-types'; import Select from 'react-select'; +import AsyncSelect from 'react-select/lib/Async'; import colors from 'config/colors'; const styles = { @@ -62,10 +64,18 @@ const styles = { }; const SelectWrapper = props => ( - } + ); +SelectWrapper.propTypes = { + isAsync: PropTypes.bool, +}; + +SelectWrapper.defaultProps = { + isAsync: false, +}; + export default SelectWrapper;