Skip to content

Commit 33049c9

Browse files
committed
Refactor: Renamed some button handler functions
1 parent 58bd2bc commit 33049c9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/pages/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,13 +129,13 @@ class Index extends React.Component {
129129
});
130130
}
131131

132-
handleInsertClick = () => {
132+
handleInsertButtonClick = () => {
133133
this.setPersistentState({
134134
insertPanelsAreOpen: !this.state.insertPanelsAreOpen,
135135
});
136136
}
137137

138-
handleNodeFormatClick = () => {
138+
handleNodeFormatButtonClick = () => {
139139
this.setPersistentState({
140140
nodeFormatDrawerIsOpen: !this.state.nodeFormatDrawerIsOpen,
141141
edgeFormatDrawerIsOpen: false,
@@ -148,7 +148,7 @@ class Index extends React.Component {
148148
});
149149
}
150150

151-
handleEdgeFormatClick = () => {
151+
handleEdgeFormatButtonClick = () => {
152152
this.setPersistentState({
153153
edgeFormatDrawerIsOpen: !this.state.edgeFormatDrawerIsOpen,
154154
nodeFormatDrawerIsOpen: false,
@@ -407,9 +407,9 @@ class Index extends React.Component {
407407
onMenuButtonClick={this.handleMainMenuButtonClick}
408408
onUndoButtonClick={this.handleUndoButtonClick}
409409
onRedoButtonClick={this.handleRedoButtonClick}
410-
onInsertClick={this.handleInsertClick}
411-
onNodeFormatClick={this.handleNodeFormatClick}
412-
onEdgeFormatClick={this.handleEdgeFormatClick}
410+
onInsertClick={this.handleInsertButtonClick}
411+
onNodeFormatClick={this.handleNodeFormatButtonClick}
412+
onEdgeFormatClick={this.handleEdgeFormatButtonClick}
413413
onZoomInButtonClick={this.handleZoomInButtonClick}
414414
onZoomOutButtonClick={this.handleZoomOutButtonClick}
415415
onZoomOutMapButtonClick={this.handleZoomOutMapButtonClick}

0 commit comments

Comments
 (0)