Skip to content

Commit fa9aedb

Browse files
author
Harry Cruse
committed
Use namespace import instead of default import for React
1 parent d80dc6d commit fa9aedb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/components/Icons.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react';
1+
import * as React from 'react';
22

33
import { Theme, TypeOptions } from '../types';
44
import { Default } from '../utils';

src/utils/cssTransition.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
import React, { useEffect, useLayoutEffect, useRef } from 'react';
1+
import * as React from 'react';
22
import { ToastTransitionProps } from '../types';
33

44
import { collapseToast } from './collapseToast';
55
import { Default } from './constant';
6+
import { useEffect, useLayoutEffect, useRef } from 'react';
67

78
export interface CSSTransitionProps {
89
/**

0 commit comments

Comments
 (0)