1
1
import React from 'react' ;
2
2
3
- import { ChoiceInput } from '../../../../components/input-components' ;
3
+ import { ChoiceInput } from '../../../../../../components/input-components' ;
4
+ import { Button } from '../../../../../../components' ;
4
5
5
- import { DATA_MODES } from '../../../../constants' ;
6
+ import { DATA_MODES } from '../../../../../../ constants' ;
6
7
7
8
import {
8
9
getStateNameFromAbbreviation ,
9
10
getStateAbbreviationFromStateName ,
10
- } from '../../../../utils' ;
11
+ } from '../../../../../../ utils' ;
11
12
12
13
import './style.scss' ;
13
14
@@ -37,22 +38,20 @@ const SelectionBar = (props) => {
37
38
const countyMode = dataMode === DATA_MODES . COUNTY ;
38
39
39
40
return (
40
- < div id = "predictionbar" className = "container " >
41
- < div className = "predictionbar-year -selection" >
42
- < p className = "predictionbar-year -selection-title" > Year</ p >
43
- < div className = "predictionbar-year -selection-options" >
41
+ < div className = "play-with-model-bar " >
42
+ < div className = "play-with-model-bar -selection" >
43
+ < p className = "play-with-model-bar -selection-title" > Year</ p >
44
+ < div className = "play-with-model-bar -selection-options" >
44
45
< ChoiceInput setValue = { setPredictionYear } value = { year } options = { revYears } firstOptionText = "Year" />
45
46
</ div >
46
47
</ div >
47
- < div id = "vl1" />
48
- < div className = "predictionbar-year-selection" >
49
- < p className = "predictionbar-year-selection-title" > State</ p >
50
- < div className = "predictionbar-year-selection-options" >
48
+ < div className = "play-with-model-bar-selection" >
49
+ < p className = "play-with-model-bar-selection-title" > State</ p >
50
+ < div className = "play-with-model-bar-selection-options" >
51
51
< ChoiceInput value = { selectedStateName } setValue = { setStateAbbrev } options = { statesMappedToNames } firstOptionText = "State" />
52
52
</ div >
53
53
</ div >
54
- < div id = "vl1" />
55
- < div className = "predictionbar-year-selection" >
54
+ < div className = "play-with-model-bar-selection" >
56
55
< div id = "mode-selection" >
57
56
< button
58
57
type = "button"
@@ -62,7 +61,6 @@ const SelectionBar = (props) => {
62
61
>
63
62
County
64
63
</ button >
65
- < div id = "vl2" />
66
64
< button
67
65
type = "button"
68
66
id = "mode-btn"
@@ -82,14 +80,12 @@ const SelectionBar = (props) => {
82
80
/>
83
81
</ div >
84
82
</ div >
85
- < button
86
- type = "button"
87
- id = "reset-current-data-button"
88
- className = "animated-button"
83
+ < Button
84
+ className = "reset-current-data-button"
89
85
onClick = { clearAllSelections }
90
86
>
91
87
Clear
92
- </ button >
88
+ </ Button >
93
89
</ div >
94
90
) ;
95
91
} ;
0 commit comments