Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

Commit

Permalink
fix(ui): chnage->change typos
Browse files Browse the repository at this point in the history
Signed-off-by: András Jáky <[email protected]>
  • Loading branch information
akijakya committed Aug 5, 2024
1 parent 21987a4 commit f0190fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions ui/src/components/Table/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const Table = (props) => {
const {
columns,
defaultSortBy,
onSortChnage,
onSortChange,
onLineClick,
paginationItemsName,
url,
Expand All @@ -50,10 +50,10 @@ const Table = (props) => {
const prevSortBy = usePrevious(sortBy);

useEffect(() => {
if (!!onSortChnage && !isEqual(prevSortBy, sortBy)) {
onSortChnage(sortBy);
if (!!onSortChange && !isEqual(prevSortBy, sortBy)) {
onSortChange(sortBy);
}
}, [prevSortBy, sortBy, onSortChnage]);
}, [prevSortBy, sortBy, onSortChange]);

const defaultColumn = React.useMemo(
() => ({
Expand Down
2 changes: 1 addition & 1 deletion ui/src/components/TablePage/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ const TablePage = (props) => {
setPage(filtersDispatch, { type: filterType, pageIndex })
}
defaultSortBy={isEmpty(tableSort) ? initialSortBy : tableSort}
onSortChnage={(tableSort) =>
onSortChange={(tableSort) =>
setSort(filtersDispatch, { type: filterType, tableSort })
}
showCustomEmptyDisplay={isEmpty(tableFilters)}
Expand Down

0 comments on commit f0190fc

Please sign in to comment.