Skip to content

Commit 5362c05

Browse files
committed
feat: Adds grid display to box props
1 parent dba459a commit 5362c05

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/overdrive/lib/components/Icon/Icon.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import type { IconType } from '@autoguru/icons';
2+
import { useNullCheck } from '../../hooks/useNullCheck';
23
import type { FunctionComponent, ReactElement, SVGAttributes } from 'react';
34
import * as React from 'react';
45
import { cloneElement } from 'react';
56

6-
import { useNullCheck } from '../../hooks';
77
import { resolveResponsiveStyle } from '../../utils/resolveResponsiveProps';
88
import { ResponsiveProp } from '../../utils/responsiveProps.css';
99
import type { BoxStyleProps } from '../Box';

packages/overdrive/lib/hooks/useNullCheck/useNullCheck.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useEffect } from 'react';
22

3-
export const useNullCheck = <T>(value: T, message: string) => {
3+
export const useNullCheck = (value: any, message: string) => {
44
useEffect(() => {
55
if (!value) {
66
console.warn(`%c${message}`, 'color: orange');

0 commit comments

Comments
 (0)