From d7adea685ba25edcfe061366af596749a05c4699 Mon Sep 17 00:00:00 2001 From: Angus Hollands Date: Thu, 5 Sep 2024 21:48:06 +0100 Subject: [PATCH] refactor: unpack single item --- packages/providers/src/ui.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/providers/src/ui.tsx b/packages/providers/src/ui.tsx index 90ca5368..2e9e811b 100644 --- a/packages/providers/src/ui.tsx +++ b/packages/providers/src/ui.tsx @@ -31,6 +31,6 @@ export function useNavOpen(): [boolean, (open: boolean) => void] { } export function useIsWide(): boolean { - const [state, _] = useContext(UiContext) ?? []; + const [state] = useContext(UiContext) ?? []; return state?.isWide ?? false; }