oihana-next-ui 0.1.42 → 0.1.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oihana-next-ui",
3
- "version": "0.1.42",
3
+ "version": "0.1.44",
4
4
  "private": false,
5
5
  "description": "Oihana Next.js UI component library — reusable components, hooks and utilities built with React 19, Next.js, Tailwind CSS and DaisyUI",
6
6
  "author": {
@@ -27,7 +27,7 @@
27
27
 
28
28
  'use client' ;
29
29
 
30
- import { useState } from 'react' ;
30
+ import { useCallback , useState } from 'react' ;
31
31
 
32
32
  import { MdMenu as MenuIcon } from 'react-icons/md' ;
33
33
 
@@ -72,8 +72,8 @@ const Dashboard =
72
72
 
73
73
  const [ drawerOpen , setDrawerOpen ] = useState( false ) ;
74
74
 
75
- const openDrawer = () => setDrawerOpen( true ) ;
76
- const closeDrawer = () => setDrawerOpen( false ) ;
75
+ const openDrawer = useCallback( () => setDrawerOpen( true ) , [] ) ;
76
+ const closeDrawer = useCallback( () => setDrawerOpen( false ) , [] ) ;
77
77
 
78
78
  const bp = breakpoint ?? 'lg' ;
79
79
 
package/src/version.js CHANGED
@@ -1,3 +1,3 @@
1
- const version = "0.1.42" ;
1
+ const version = "0.1.44" ;
2
2
 
3
3
  export default version ;