Skip to content

Commit 4f5b21d

Browse files
committed
#291 #265 linting and cleaning
1 parent a8e5fad commit 4f5b21d

16 files changed

Lines changed: 7 additions & 3384 deletions

webapp/components/general/NetPyNEThumbnail.js

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ const styles = {
1818
},
1919
toolbar: {
2020

21-
fontSize: "0.7em",
21+
fontSize: '0.7em',
2222
zIndex: 1000,
2323

24-
}
24+
},
2525
};
2626

2727
export default class NetPyNEThumbnail extends React.Component {
@@ -34,7 +34,6 @@ export default class NetPyNEThumbnail extends React.Component {
3434
this.handleDialogBox = this.handleDialogBox.bind(this);
3535
}
3636

37-
3837
handleClick() {
3938
if (this.props.handleClick) {
4039
this.props.handleClick(this.props.name, true);
@@ -58,8 +57,6 @@ export default class NetPyNEThumbnail extends React.Component {
5857
};
5958
}
6059

61-
62-
6360
render() {
6461
const {
6562
name, selected, isButton = false, isCog = false,
@@ -99,19 +96,16 @@ const getButton = (isCogButton, isRegularButton, label, selected, tooltip, props
9996
return getFabButton(label, selected, tooltip, props);
10097
};
10198

102-
10399
const HoverActions = ({ deleteAction }) => (
104-
<Box style={styles.toolbar} >
105-
<Tooltip title={"Delete item"} placement="top">
100+
<Box style={styles.toolbar}>
101+
<Tooltip title="Delete item" placement="top">
106102
<IconButton size="small" onClick={deleteAction}>
107103
<Icon fontSize="inherit" className="fa fa-trash-o" />
108104
</IconButton>
109105
</Tooltip>
110-
</Box >
111-
112-
)
113-
106+
</Box>
114107

108+
);
115109

116110
const getCogButton = (label, selected, others) => (
117111

@@ -142,7 +136,6 @@ const getRegularButton = (label, selected, others) => (
142136
{label}
143137
</Button>
144138

145-
146139
);
147140

148141
const getFabButton = (label, selected, others) => (

webapp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,4 @@
7373
]
7474
}
7575
}
76-
}
76+
}

webapp/tests/old/README.md

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)