Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
XYShaoKang committed Sep 22, 2024
1 parent 7e32285 commit 8778b17
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/content/pages/ranking/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,7 @@ export function getUsername(

/** 当前行发生改变是触发事件
*/
export const useRowChange = (
row: HTMLElement,
onChange: () => void,
beta?: boolean
): void => {
export const useRowChange = (row: HTMLElement, onChange: () => void): void => {
useEffect(() => {
const handleChange = debounce(() => {
onChange()
Expand All @@ -94,7 +90,7 @@ export const useUser = (
const handleChange = useEvent(() => {
setState(getUsername(hasMyRank, index, row, beta))
})
useRowChange(row, handleChange, beta)
useRowChange(row, handleChange)
return state
}

Expand Down

0 comments on commit 8778b17

Please sign in to comment.