Skip to content

Commit 834bbbd

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

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,4 +1,5 @@
1-
import React, { useEffect, useLayoutEffect, useRef } from 'react';
1+
import * as React from 'react';
2+
import { useEffect, useLayoutEffect, useRef } from 'react';
23
import { ToastTransitionProps } from '../types';
34

45
import { collapseToast } from './collapseToast';

0 commit comments

Comments
 (0)