@@ -7,6 +7,7 @@ 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
+ import { makeStyles } from '@mui/material/styles'
10
11
11
12
function AddLink ( { id, onClickHandler } ) {
12
13
const { isThemeLight } = useContext ( styleContext ) ;
@@ -37,47 +38,21 @@ function AddLink({ id, onClickHandler }) {
37
38
}
38
39
39
40
const pagesItems = state . components . filter ( comp => state . rootComponents . includes ( comp . id ) ) ;
40
- < < << << < HEAD
41
- 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
+ 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 > ) ) ;
42
+
42
43
43
44
return (
44
- < div style = { { padding : '1px' , float : 'right' , display : 'flex' } } >
45
- < FormControl size = 'medium' style = { { color : '#008000' /*{display: 'flex', alignItems: 'stretch'}*/ } } >
46
- < InputLabel id = 'page-select-label' style = { { color :' #008000 '} } > Pages</ InputLabel >
45
+ < div style = { { float : 'right' } } >
46
+ < FormControl variant = 'outlined' focused = 'true' style = { { width : '100%' } } >
47
+ < InputLabel id = 'page-select-label' style = { { color : isThemeLight ? '#000' : '#fff '} } > Pages</ InputLabel >
47
48
< Select
48
- // MenuProps={{
49
- // anchorOrigin: {
50
- // vertical: "bottom",
51
- // horizontal: "left"
52
- // },
53
- // transformOrigin: {
54
- // vertical: "top",
55
- // horizontal: "left"
56
- // },
57
- // getContentAnchorEl: null
58
- // }}
59
49
label = 'Pages'
60
- labelId = 'page-select-label'
61
- = === ===
62
- const dropDown = pagesItems . map ( comp = > < MenuItem style = { { color : 'black' } } value = { comp . name } > { comp . name } </ MenuItem > );
63
-
64
- return (
65
- < div style = { { padding : '1px' , float : 'right' , display : 'flex' , border : '2px solid red' , alignSelf : 'center' } } >
66
- < FormControl size = 'medium' style = { { display : 'flex' } } >
67
- { /* <InputLabel style={ { color: isThemeLight? '#fff' : '#000'} }>Pages</InputLabel> */ }
68
- < Select label = 'pages'
69
- > >>> >>> 6 d3fbd545288416cd1e582d188963853b7c08f07
70
- variant = "outlined "
71
- onMouseDown = { onClickHandler }
50
+ // onMouseDown={onClickHandler}
72
51
onChange = { handlePageSelect }
73
52
id = "page-select"
74
- < < << << < HEAD
75
- 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' } }
76
- = === ===
77
53
style = { isThemeLight
78
54
? { backgroundColor : '#eef0f1' , color : '#000' , border : '1px solid black' , height : '28px' , width : '200px' }
79
55
: { backgroundColor : 'gray' , color : '#fff' , border : '1px solid white' , height : '28px' , width : '200px' } }
80
- > >>> >>> 6 d3fbd545288416cd1e582d188963853b7c08f07
81
56
>
82
57
{ dropDown }
83
58
</ Select >
0 commit comments