From 4fab4c46baf4d9c475b16a306ab5e2eeee5d6cd0 Mon Sep 17 00:00:00 2001 From: Kermit Xuan Date: Thu, 29 Oct 2020 16:04:25 +0800 Subject: [PATCH] chore: fix allowSyntheticDefaultImports define (#209) --- src/Popup/useStretchStyle.ts | 2 +- src/index.tsx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Popup/useStretchStyle.ts b/src/Popup/useStretchStyle.ts index 444ea02c..d757e72c 100644 --- a/src/Popup/useStretchStyle.ts +++ b/src/Popup/useStretchStyle.ts @@ -1,4 +1,4 @@ -import React from 'react'; +import * as React from 'react'; import { StretchType } from '../interface'; export default ( diff --git a/src/index.tsx b/src/index.tsx index 022744ad..37075fa9 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,4 +1,5 @@ -import React, { HTMLAttributes } from 'react'; +import * as React from 'react'; +import { HTMLAttributes } from 'react'; import ReactDOM from 'react-dom'; import raf from 'rc-util/lib/raf'; import contains from 'rc-util/lib/Dom/contains';