Skip to content

Commit 7ff4b5b

Browse files
committed
fix typo
+ drop unnecessary hook dependency
1 parent 18cf984 commit 7ff4b5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/@headlessui-react/src/hooks/use-is-top-layer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export function useIsTopLayer(enabled: boolean, scope: string | null) {
3737
stackMachine.selectors.isTop(state, id),
3838
stackMachine.selectors.inStack(state, id),
3939
],
40-
[stackMachine, id, enabled]
40+
[stackMachine, id]
4141
)
4242
)
4343

@@ -49,7 +49,7 @@ export function useIsTopLayer(enabled: boolean, scope: string | null) {
4949
return () => stackMachine.actions.pop(id)
5050
}, [stackMachine, enabled, id])
5151

52-
// If the hook is not enabled, we know for sure it is not going to tbe the
52+
// If the hook is not enabled, we know for sure it is not going to be the
5353
// top-most item.
5454
if (!enabled) return false
5555

0 commit comments

Comments
 (0)