Refactor chart

This commit is contained in:
Thomas Nordquist
2019-07-13 15:57:30 +02:00
parent 7c63e871f0
commit b5d9ff3067
13 changed files with 274 additions and 238 deletions

View File

@@ -23,6 +23,8 @@ interface State {
}
class HistoryDrawer extends React.Component<Props, State> {
private handleCtrlA = selectTextWithCtrlA({ targetSelector: 'pre' })
constructor(props: any) {
super(props)
this.state = {
@@ -40,8 +42,6 @@ class HistoryDrawer extends React.Component<Props, State> {
event.stopPropagation()
}
private handleCtrlA = selectTextWithCtrlA({ targetSelector: 'pre' })
public renderHistory() {
const style = (element: HistoryItem) => ({
backgroundColor: element.selected