From 98f98d123dc8427f87c1fb36da17f7bfef13a4f1 Mon Sep 17 00:00:00 2001 From: Mohamed Karray Date: Thu, 28 Mar 2019 10:13:56 +0100 Subject: [PATCH 1/2] add optionValues to the DropDow component --- .../packages/ui-components/src/forms/DropDown.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scm-ui-components/packages/ui-components/src/forms/DropDown.js b/scm-ui-components/packages/ui-components/src/forms/DropDown.js index 62a7f1ebe1..457039a0a8 100644 --- a/scm-ui-components/packages/ui-components/src/forms/DropDown.js +++ b/scm-ui-components/packages/ui-components/src/forms/DropDown.js @@ -5,6 +5,7 @@ import classNames from "classnames"; type Props = { options: string[], + optionValues?: string[], optionSelected: string => void, preselectedOption?: string, className: any, @@ -13,7 +14,7 @@ type Props = { class DropDown extends React.Component { render() { - const { options, preselectedOption, className, disabled } = this.props; + const { options, optionValues, preselectedOption, className, disabled } = this.props; return (