diff options
author | Matthew Shao <me@matshao.com> | 2017-07-20 15:39:43 +0800 |
---|---|---|
committer | Matthew Shao <me@matshao.com> | 2017-07-20 15:39:43 +0800 |
commit | f465f08c9ac302007b3aec6709a8e82d63c7ad65 (patch) | |
tree | f50a0700ba88ac91f1e82fafeb96c65a0e7f4fb4 /web/src/js/components | |
parent | cbf5db9a4ff77440276ca6bb4d395cc5bdee30ad (diff) | |
download | mitmproxy-f465f08c9ac302007b3aec6709a8e82d63c7ad65.tar.gz mitmproxy-f465f08c9ac302007b3aec6709a8e82d63c7ad65.tar.bz2 mitmproxy-f465f08c9ac302007b3aec6709a8e82d63c7ad65.zip |
[web] Minor fix and update tests.
Diffstat (limited to 'web/src/js/components')
-rw-r--r-- | web/src/js/components/Modal/Option.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/src/js/components/Modal/Option.jsx b/web/src/js/components/Modal/Option.jsx index 1a847602..58b863d1 100644 --- a/web/src/js/components/Modal/Option.jsx +++ b/web/src/js/components/Modal/Option.jsx @@ -70,7 +70,7 @@ ChoicesOption.PropTypes = { value: PropTypes.string.isRequired, onChange: PropTypes.func.isRequired, } -function ChoicesOption({ value, onChange, choices, ...props }) { +export function ChoicesOption({ value, onChange, choices, ...props }) { return ( <select onChange={(e) => onChange(e.target.value)} @@ -100,7 +100,7 @@ function StringSequenceOption({ value, onChange, ...props }) { /> } -const Options = { +export const Options = { "bool": BooleanOption, "str": StringOption, "int": NumberOption, |