Skip to content

Commit 36dad23

Browse files
committed
R1 dropdown
1 parent c6d38ec commit 36dad23

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

src/app/components/SwitchState.jsx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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;

src/app/containers/ActionContainer.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/* eslint-disable react/no-array-index-key */
22
import React from 'react';
3+
import SwitchStateDropdown from '../components/SwitchState';
34
import Action from '../components/Action';
45

56
import { emptySnapshots } from '../actions/actions';
@@ -31,6 +32,7 @@ function ActionContainer() {
3132
<button className="empty-button" onClick={() => dispatch(emptySnapshots())} type="button">
3233
Empty
3334
</button>
35+
<SwitchStateDropdown />
3436
</div>
3537
<div>{actionsArr}</div>
3638
</div>

0 commit comments

Comments
 (0)