File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
import type { IconType } from '@autoguru/icons' ;
2
+ import { useNullCheck } from '../../hooks/useNullCheck' ;
2
3
import type { FunctionComponent , ReactElement , SVGAttributes } from 'react' ;
3
4
import * as React from 'react' ;
4
5
import { cloneElement } from 'react' ;
5
6
6
- import { useNullCheck } from '../../hooks' ;
7
7
import { resolveResponsiveStyle } from '../../utils/resolveResponsiveProps' ;
8
8
import { ResponsiveProp } from '../../utils/responsiveProps.css' ;
9
9
import type { BoxStyleProps } from '../Box' ;
Original file line number Diff line number Diff line change 1
1
import { useEffect } from 'react' ;
2
2
3
- export const useNullCheck = < T > ( value : T , message : string ) => {
3
+ export const useNullCheck = ( value : any , message : string ) => {
4
4
useEffect ( ( ) => {
5
5
if ( ! value ) {
6
6
console . warn ( `%c${ message } ` , 'color: orange' ) ;
You can’t perform that action at this time.
0 commit comments