From d572d38a7c3cea85fbc46662a2a721c3cb313c17 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Fri, 19 Jan 2024 16:48:24 +1100 Subject: [PATCH] feat(hooks): re-export commonly used chakra hooks --- lib/hooks/chakra-hooks.ts | 1 + lib/hooks/index.ts | 1 + 2 files changed, 2 insertions(+) create mode 100644 lib/hooks/chakra-hooks.ts diff --git a/lib/hooks/chakra-hooks.ts b/lib/hooks/chakra-hooks.ts new file mode 100644 index 0000000..79cf874 --- /dev/null +++ b/lib/hooks/chakra-hooks.ts @@ -0,0 +1 @@ +export { useDisclosure, useToken } from '@chakra-ui/react'; diff --git a/lib/hooks/index.ts b/lib/hooks/index.ts index cd5d4ed..6f9f3e3 100644 --- a/lib/hooks/index.ts +++ b/lib/hooks/index.ts @@ -1,2 +1,3 @@ +export { useDisclosure, useToken } from './chakra-hooks'; export { useGlobalMenuClose } from './use-global-menu-close'; export { useGlobalModifiersImperativeAPI, useGlobalModifiersInit } from './use-global-modifiers';