Skip to content

Commit 8400b4a

Browse files
committed
cleaned up unused code
1 parent 228360e commit 8400b4a

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

app/src/containers/RightContainer.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import ListItem from '@material-ui/core/ListItem';
2626
import ListItemText from '@material-ui/core/ListItemText';
2727
import createModal from '../components/right/createModal';
2828
import ComponentPanel from '../components/right/ComponentPanel';
29-
import { keys } from '@material-ui/core/styles/createBreakpoints';
3029

3130
// need to pass in props to use the useHistory feature of react router
3231
const RightContainer = ({isThemeLight}): JSX.Element => {
@@ -47,8 +46,8 @@ const RightContainer = ({isThemeLight}): JSX.Element => {
4746

4847
const resetFields = () => {
4948
const style = configTarget.child
50-
? configTarget.child.style
51-
: configTarget.style;
49+
? configTarget.child.style
50+
: configTarget.style;
5251
setDisplayMode(style.display ? style.display : '');
5352
setFlexDir(style.flexDirection ? style.flexDirection : '');
5453
setFlexJustify(style.justifyContent ? style.justifyContent : '');
@@ -525,24 +524,20 @@ useEffect(() => {
525524
</div>
526525
)}
527526
<div className = {classes.buttonRow}>
528-
{/* <HotKeys keyMap={undoKeyMap} handlers={undoHandlers}> */}
529527
<Button
530528
color="primary"
531529
className={classes.button}
532530
onClick={undoAction}
533531
>
534532
<i className="fas fa-undo"></i>
535533
</Button>
536-
{/* </HotKeys> */}
537-
{/* <HotKeys> */}
538534
<Button
539535
color="primary"
540536
className={classes.button}
541537
onClick={redoAction}
542538
>
543539
<i className="fas fa-redo"></i>
544540
</Button>
545-
{/* </HotKeys> */}
546541
</div>
547542
</div>
548543

app/src/helperFunctions/generateCode.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import React, {useContext, useRef, useState} from 'react';
2-
import StateContext from '../context/context';
31
import {
42
Component,
53
State,

0 commit comments

Comments
 (0)