Skip to content

Commit

Permalink
Remove unnecessary useCallback
Browse files Browse the repository at this point in the history
  • Loading branch information
kkosiorowska committed May 17, 2024
1 parent 64f2481 commit dfe40ad
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions dapp/src/components/shared/ActivitiesList/ActivitiesList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,9 @@ function ActivitiesList(props: ListProps) {
}, ONE_SEC_IN_MILLISECONDS)
}, [activities])

const handleItemDismiss = React.useCallback(
(activityId: string) => {
dispatch(deleteActivity(activityId))
},
[dispatch],
)
const handleItemDismiss = (activityId: string) => {
dispatch(deleteActivity(activityId))
}

if (allActivities.length === 0) return null

Expand Down

0 comments on commit dfe40ad

Please sign in to comment.