Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit c253528

Browse files
committed
descripotible name
1 parent 3328a60 commit c253528

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/HeaderMenu.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ const HeaderMenu = (headerMenuProps: HeaderMenuProps) => {
113113
type: ActionTypes.ADD_COLUMN_TO_LEFT,
114114
columnId: column.id,
115115
focus: false,
116-
columnInfo: adjustWidthOfTheColumn(column.position - 1),
116+
columnInfo: adjustWidthOfTheColumnsWhenAdd(column.position - 1),
117117
});
118118
setExpanded(false);
119119
},
@@ -126,7 +126,7 @@ const HeaderMenu = (headerMenuProps: HeaderMenuProps) => {
126126
type: ActionTypes.ADD_COLUMN_TO_RIGHT,
127127
columnId: column.id,
128128
focus: false,
129-
columnInfo: adjustWidthOfTheColumn(column.position + 1),
129+
columnInfo: adjustWidthOfTheColumnsWhenAdd(column.position + 1),
130130
});
131131
setExpanded(false);
132132
},
@@ -247,7 +247,7 @@ const HeaderMenu = (headerMenuProps: HeaderMenuProps) => {
247247
e.preventDefault();
248248
}
249249

250-
function adjustWidthOfTheColumn(wantedPosition: number) {
250+
function adjustWidthOfTheColumnsWhenAdd(wantedPosition: number) {
251251
const columnNumber =
252252
initialState.columns.length - initialState.shadowColumns.length;
253253
const columnName = `newColumn${columnNumber}`;

0 commit comments

Comments
 (0)