File tree Expand file tree Collapse file tree 2 files changed +17
-31
lines changed Expand file tree Collapse file tree 2 files changed +17
-31
lines changed Original file line number Diff line number Diff line change 2626 opacity 0.25s ease-out;
2727}
2828
29- /* Temporary */
30- .menu > span {
31- color : # fff8 ;
32- font-weight : 500 ;
33- text-align : center;
34- }
35-
3629.menu-item {
3730 display : flex;
3831 flex-flow : row nowrap;
Original file line number Diff line number Diff line change @@ -102,30 +102,23 @@ function WidgetSettings() {
102102 return (
103103 < >
104104 { widgets . map ( ( state ) => {
105- return (
106- < >
107- < span >
108- { state . type . replace ( / ^ ./ , ( match ) => match . toUpperCase ( ) ) }
109- </ span >
110- { Object . entries ( state . settings ) . map ( ( [ key , value ] , i ) => {
111- return (
112- < MenuItem
113- key = { i }
114- name = { key
115- . replace ( / ( [ A - Z ] ) / g, ( match ) => ` ${ match } ` )
116- . replace ( / ( [ A - Z a - z ] ) (? = \d ) / g, "$1 " )
117- . replace ( / ^ ./ , ( match ) => match . toUpperCase ( ) )
118- . trim ( ) }
119- initialValue = { value }
120- onChange = { ( v ) => {
121- state . settings [ key ] = v ;
122- setWidgets ( [ ...widgets ] ) ;
123- } }
124- > </ MenuItem >
125- ) ;
126- } ) }
127- </ >
128- ) ;
105+ return Object . entries ( state . settings ) . map ( ( [ key , value ] , i ) => {
106+ return (
107+ < MenuItem
108+ key = { i }
109+ name = { key
110+ . replace ( / ( [ A - Z ] ) / g, ( match ) => ` ${ match } ` )
111+ . replace ( / ( [ A - Z a - z ] ) (? = \d ) / g, "$1 " )
112+ . replace ( / ^ ./ , ( match ) => match . toUpperCase ( ) )
113+ . trim ( ) }
114+ initialValue = { value }
115+ onChange = { ( v ) => {
116+ state . settings [ key ] = v ;
117+ setWidgets ( [ ...widgets ] ) ;
118+ } }
119+ > </ MenuItem >
120+ ) ;
121+ } ) ;
129122 } ) }
130123 </ >
131124 ) ;
You can’t perform that action at this time.
0 commit comments