Skip to content

Commit 25e7cd7

Browse files
committed
Added State and Function/Class Toggles to left nav
1 parent 1b9f753 commit 25e7cd7

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

src/components/LeftColExpansionPanel.tsx

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ import Button from '@material-ui/core/Button';
1212
import Tooltip from '@material-ui/core/Tooltip';
1313
import Switch from '@material-ui/core/Switch'; // for state toggling
1414
import InputLabel from '@material-ui/core/InputLabel'; // labeling of state/class toggles
15+
import Select from '@material-ui/core/Select'; // for Class/Functional drop down
16+
import MenuItem from '@material-ui/core/MenuItem'; // for drop down item selections
1517

1618
// import { ComponentInt, ComponentsInt, ChildInt } from '../utils/Interfaces'; // unused
1719

@@ -86,6 +88,36 @@ const LeftColExpansionPanel = (props: any) => {
8688
color='primary'
8789
id='stateful'
8890
/>
91+
<div>
92+
<InputLabel
93+
id='label'
94+
style={{
95+
color: '#fff',
96+
marginBottom: '10px',
97+
marginTop: '0px',
98+
marginLeft: '11px',
99+
padding: '0px',
100+
fontSize: '18px'
101+
}}
102+
>
103+
Component Type
104+
</InputLabel>
105+
<Select
106+
id='select'
107+
value='class'
108+
style={{
109+
color: '#fff',
110+
marginBottom: '10px',
111+
marginTop: '0px',
112+
marginLeft: '11px',
113+
padding: '0px',
114+
fontSize: '18px'
115+
}}
116+
>
117+
<MenuItem value='class'>Class</MenuItem>
118+
<MenuItem value='functional'>Functional</MenuItem>
119+
</Select>
120+
</div>
89121
</div>
90122
}
91123
style={{ color }}

0 commit comments

Comments
 (0)