File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change 11import { useCallback } from 'react' ;
22
33export function useInitials ( ) {
4- const getInitials = useCallback ( ( fullName : string ) : string => {
4+ return useCallback ( ( fullName : string ) : string => {
55 const names = fullName . trim ( ) . split ( ' ' ) ;
66
77 if ( names . length === 0 ) return '' ;
@@ -12,6 +12,4 @@ export function useInitials() {
1212
1313 return `${ firstInitial } ${ lastInitial } ` . toUpperCase ( ) ;
1414 } , [ ] ) ;
15-
16- return getInitials ;
1715}
Original file line number Diff line number Diff line change 11import { useCallback } from 'react' ;
22
33export function useMobileNavigation ( ) {
4- const cleanup = useCallback ( ( ) => {
4+ return useCallback ( ( ) => {
55 // Remove pointer-events style from body...
66 document . body . style . removeProperty ( 'pointer-events' ) ;
77 } , [ ] ) ;
8-
9- return cleanup ;
108}
You can’t perform that action at this time.
0 commit comments