Refactor chart
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user