Skip to content

Commit 351fe4d

Browse files
committed
dropdown update
1 parent 1c8da9b commit 351fe4d

File tree

4 files changed

+34
-8
lines changed

4 files changed

+34
-8
lines changed

package-lock.json

Lines changed: 11 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "reactime-extension",
2+
"name": "reactime",
33
"description": "build web extension bundle.js",
44
"scripts": {
55
"build": "webpack --mode production",
@@ -26,7 +26,7 @@
2626
"David Chai",
2727
"Josh Kim",
2828
"Ruthba Anam",
29-
"Ryan Dang",
29+
"Ryan Dang",
3030
"Sierra Swaby",
3131
"Yujin Kang"
3232
],

src/app/components/SwitchState.jsx

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,25 @@ import Select from 'react-select';
55
// and specific states being used
66
// TODO: Need to get the getter name (for functional components)
77
// and state name for stateful components
8-
const SwitchStateDropdown = props => {
8+
const SwitchStateDropdown = () => {
99
// Requirements:
10-
// Need to be able to filter by state name
11-
// The way state name gets imported needs to be checked
10+
// Should be able to filter the Actions by the name of the state being changed
11+
// Should consider how to import the state names being changed
12+
// Should display the "All state", as well as specific state names as the options
13+
// When clicked on "All state" >> should display all Actions
14+
// When clicked on a specific "state" >> should only display Actions corresponding to the state
15+
16+
const sampleDropdown = [
17+
{label: 'Overview'},
18+
{label: 'setUsername'},
19+
{label: 'setPassword'}
20+
];
21+
1222
return (
13-
<Select className="state-dropdown"
23+
<Select
24+
className="state-dropdown"
1425
placeholder="Choose your state"
15-
options={}
26+
options={sampleDropdown}
1627
/>
1728
)
1829
}

src/app/styles/components/_buttons.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
width: 120px;
44
}
55

6+
.state-dropdown {
7+
width: 240px;
8+
margin-left: 20px;
9+
}
10+
611
.action-component:hover .jump-button {
712
opacity: 1;
813
transform: rotateX(0deg);

0 commit comments

Comments
 (0)