File tree 5 files changed +1
-67
lines changed 5 files changed +1
-67
lines changed Original file line number Diff line number Diff line change @@ -171,18 +171,6 @@ export function closeShareModal() {
171
171
} ;
172
172
}
173
173
174
- export function showEditorOptions ( ) {
175
- return {
176
- type : ActionTypes . SHOW_EDITOR_OPTIONS
177
- } ;
178
- }
179
-
180
- export function closeEditorOptions ( ) {
181
- return {
182
- type : ActionTypes . CLOSE_EDITOR_OPTIONS
183
- } ;
184
- }
185
-
186
174
export function showKeyboardShortcutModal ( ) {
187
175
return {
188
176
type : ActionTypes . SHOW_KEYBOARD_SHORTCUT_MODAL
Original file line number Diff line number Diff line change @@ -362,20 +362,10 @@ class Editor extends React.Component {
362
362
} ) ;
363
363
}
364
364
365
- toggleEditorOptions ( ) {
366
- if ( this . props . editorOptionsVisible ) {
367
- this . props . closeEditorOptions ( ) ;
368
- } else {
369
- this . optionsButton . focus ( ) ;
370
- this . props . showEditorOptions ( ) ;
371
- }
372
- }
373
-
374
365
render ( ) {
375
366
const editorSectionClass = classNames ( {
376
367
editor : true ,
377
- 'sidebar--contracted' : ! this . props . isExpanded ,
378
- 'editor--options' : this . props . editorOptionsVisible
368
+ 'sidebar--contracted' : ! this . props . isExpanded
379
369
} ) ;
380
370
381
371
const editorHolderClass = classNames ( {
@@ -462,9 +452,6 @@ Editor.propTypes = {
462
452
fileType : PropTypes . string . isRequired ,
463
453
url : PropTypes . string
464
454
} ) . isRequired ,
465
- editorOptionsVisible : PropTypes . bool . isRequired ,
466
- showEditorOptions : PropTypes . func . isRequired ,
467
- closeEditorOptions : PropTypes . func . isRequired ,
468
455
setUnsavedChanges : PropTypes . func . isRequired ,
469
456
startRefreshSketch : PropTypes . func . isRequired ,
470
457
autorefresh : PropTypes . bool . isRequired ,
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ const initialState = {
14
14
shareModalProjectId : 'abcd' ,
15
15
shareModalProjectName : 'My Cute Sketch' ,
16
16
shareModalProjectUsername : 'p5_user' ,
17
- editorOptionsVisible : false ,
18
17
keyboardShortcutVisible : false ,
19
18
unsavedChanges : false ,
20
19
infiniteLoop : false ,
@@ -82,10 +81,6 @@ const ide = (state = initialState, action) => {
82
81
} ) ;
83
82
case ActionTypes . CLOSE_SHARE_MODAL :
84
83
return Object . assign ( { } , state , { shareModalVisible : false } ) ;
85
- case ActionTypes . SHOW_EDITOR_OPTIONS :
86
- return Object . assign ( { } , state , { editorOptionsVisible : true } ) ;
87
- case ActionTypes . CLOSE_EDITOR_OPTIONS :
88
- return Object . assign ( { } , state , { editorOptionsVisible : false } ) ;
89
84
case ActionTypes . SHOW_KEYBOARD_SHORTCUT_MODAL :
90
85
return Object . assign ( { } , state , { keyboardShortcutVisible : true } ) ;
91
86
case ActionTypes . CLOSE_KEYBOARD_SHORTCUT_MODAL :
Original file line number Diff line number Diff line change @@ -372,41 +372,6 @@ pre.CodeMirror-line {
372
372
height : #{29 / $base-font-size } rem;
373
373
}
374
374
375
- .editor__options-button {
376
- @include icon ();
377
- position : absolute ;
378
- top : #{10 / $base-font-size } rem;
379
- right : #{2 / $base-font-size } rem;
380
- z-index : 1 ;
381
- }
382
-
383
-
384
- .editor__options {
385
- display : none ;
386
- @extend %modal ;
387
- position : absolute ;
388
- right : #{0 / $base-font-size } rem;
389
- padding : #{8 / $base-font-size } rem #{20 / $base-font-size } rem;
390
- font-size : #{12 / $base-font-size } rem;
391
- @include themify () {
392
- background-color : getThemifyVariable (' modal-background-color' );
393
- box-shadow : 0 0 18px getThemifyVariable (' shadow-color' );
394
- }
395
- .editor--options & {
396
- display : block ;
397
- }
398
- }
399
-
400
- .editor__options li {
401
- padding : #{4 / $base-font-size } rem 0 ;
402
- }
403
-
404
- .editor__options a {
405
- @include themify () {
406
- color : getThemifyVariable (' secondary-text-color' );
407
- }
408
- }
409
-
410
375
.editor__file-name {
411
376
@include themify () {
412
377
color : getThemifyVariable (' primary-text-color' );
Original file line number Diff line number Diff line change @@ -32,7 +32,6 @@ const initialTestState = {
32
32
shareModalProjectId : 'abcd' ,
33
33
shareModalProjectName : 'My Cute Sketch' ,
34
34
shareModalProjectUsername : 'p5_user' ,
35
- editorOptionsVisible : false ,
36
35
keyboardShortcutVisible : false ,
37
36
unsavedChanges : false ,
38
37
infiniteLoop : false ,
You can’t perform that action at this time.
0 commit comments