Skip to content

Commit e17ded9

Browse files
authored
Fix little things (#3409)
* missing useCallback dep * cursor shouldn't be pointer
1 parent 7df9902 commit e17ded9

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

packages/compass-sidebar/src/components/db-stats.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ type Database = {
3737
const dbStats = css({
3838
display: 'flex',
3939
alignItems: 'center',
40-
cursor: 'pointer',
4140
padding: `${spacing[5]}px ${spacing[3]}px`,
4241
gap: spacing[5],
4342
});

packages/compass-sidebar/src/components/navigation-items.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export function NavigationItem<Actions extends string>({
7878

7979
const onClick = useCallback(() => {
8080
onAction('open-instance-workspace', tabName);
81-
}, [onAction]);
81+
}, [onAction, tabName]);
8282

8383
return (
8484
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions

0 commit comments

Comments
 (0)