File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change
1
+ import React from 'react' ;
2
+ import Select from 'react-select' ;
3
+
4
+ // SwitchStateDropdown should display options including all
5
+ // and specific states being used
6
+ // TODO: Need to get the getter name (for functional components)
7
+ // and state name for stateful components
8
+ const SwitchStateDropdown = props => {
9
+ // Requirements:
10
+ // Need to be able to filter by state name
11
+ // The way state name gets imported needs to be checked
12
+ return (
13
+ < Select className = "state-dropdown"
14
+ placeholder = "Choose your state"
15
+ options = { }
16
+ />
17
+ )
18
+ }
19
+
20
+ export default SwitchStateDropdown ;
Original file line number Diff line number Diff line change 1
1
/* eslint-disable react/no-array-index-key */
2
2
import React from 'react' ;
3
+ import SwitchStateDropdown from '../components/SwitchState' ;
3
4
import Action from '../components/Action' ;
4
5
5
6
import { emptySnapshots } from '../actions/actions' ;
@@ -31,6 +32,7 @@ function ActionContainer() {
31
32
< button className = "empty-button" onClick = { ( ) => dispatch ( emptySnapshots ( ) ) } type = "button" >
32
33
Empty
33
34
</ button >
35
+ < SwitchStateDropdown />
34
36
</ div >
35
37
< div > { actionsArr } </ div >
36
38
</ div >
You can’t perform that action at this time.
0 commit comments