From 834bbbd3566a53608a7d22bb3e2cd7bcd48eeaa6 Mon Sep 17 00:00:00 2001 From: Harry Cruse Date: Wed, 3 Nov 2021 17:21:02 +0000 Subject: [PATCH] Use namespace import instead of default import for React --- src/components/Icons.tsx | 2 +- src/utils/cssTransition.tsx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/Icons.tsx b/src/components/Icons.tsx index 8b3357f7..44508f78 100644 --- a/src/components/Icons.tsx +++ b/src/components/Icons.tsx @@ -1,4 +1,4 @@ -import React from 'react'; +import * as React from 'react'; import { Theme, TypeOptions } from '../types'; import { Default } from '../utils'; diff --git a/src/utils/cssTransition.tsx b/src/utils/cssTransition.tsx index 0c97c3e5..eb8b7727 100644 --- a/src/utils/cssTransition.tsx +++ b/src/utils/cssTransition.tsx @@ -1,4 +1,5 @@ -import React, { useEffect, useLayoutEffect, useRef } from 'react'; +import * as React from 'react'; +import { useEffect, useLayoutEffect, useRef } from 'react'; import { ToastTransitionProps } from '../types'; import { collapseToast } from './collapseToast';