@@ -5,7 +5,7 @@ import FormControl from '@material-ui/core/FormControl';
5
5
import MenuItem from '@material-ui/core/MenuItem' ;
6
6
import Select from '@material-ui/core/Select' ;
7
7
import { InputLabel } from '@material-ui/core' ;
8
-
8
+ import { TextField } from '@material-ui/core' ;
9
9
import { styleContext } from '../../containers/AppContainer' ;
10
10
11
11
function AddLink ( { id, onClickHandler } ) {
@@ -37,18 +37,31 @@ function AddLink({ id, onClickHandler }) {
37
37
}
38
38
39
39
const pagesItems = state . components . filter ( comp => state . rootComponents . includes ( comp . id ) ) ;
40
- const dropDown = pagesItems . map ( comp => < MenuItem value = { comp . name } > { comp . name } </ MenuItem > ) ;
40
+ const dropDown = [ < MenuItem style = { { color : isThemeLight ? '#000' : '#fff' } } disabled /*hidden selected*/ > Pages </ MenuItem > ] . concat ( pagesItems . map ( comp => < MenuItem style = { { color : isThemeLight ? '#000' : '#fff' } } value = { comp . name } > { comp . name } </ MenuItem > ) ) ;
41
41
42
42
return (
43
- < div style = { { padding : '1px' , float : 'right' , display : 'flex' , border : '2px solid red' , alignSelf : 'center' } } >
44
- < FormControl size = 'medium' style = { { display : 'flex' } } >
45
- < InputLabel style = { { color : isThemeLight ? '#000' : '#fff' } } > Pages</ InputLabel >
46
- < Select label = 'pages'
43
+ < div style = { { padding : '1px' , float : 'right' , display : 'flex' } } >
44
+ < FormControl size = 'medium' style = { { color : '#008000' /*{display: 'flex', alignItems: 'stretch'}*/ } } >
45
+ < InputLabel id = 'page-select-label' style = { { color :' #008000' } } > Pages</ InputLabel >
46
+ < Select
47
+ // MenuProps={{
48
+ // anchorOrigin: {
49
+ // vertical: "bottom",
50
+ // horizontal: "left"
51
+ // },
52
+ // transformOrigin: {
53
+ // vertical: "top",
54
+ // horizontal: "left"
55
+ // },
56
+ // getContentAnchorEl: null
57
+ // }}
58
+ label = 'Pages'
59
+ labelId = 'page-select-label'
47
60
variant = "outlined"
48
61
onMouseDown = { onClickHandler }
49
62
onChange = { handlePageSelect }
50
63
id = "page-select"
51
- style = { isThemeLight ? { backgroundColor : '#eef0f1' , color : '#000' , border : '1px solid black' , height : '28px' , width : '200px' } : { backgroundColor : 'gray' , color : '#fff' , border : '1px solid white' , height : '28px' , width : '200px' } }
64
+ style = { isThemeLight ? { /* backgroundColor: '#eef0f1',*/ color : '#000' , border : '1px solid black' , height : '28px' , width : '200px' } : { backgroundColor : 'gray' , color : '#fff' , border : '1px solid white' , height : '28px' , width : '200px' } }
52
65
>
53
66
{ dropDown }
54
67
</ Select >
0 commit comments