From f45c433c1d84afa9909a3f619c9b1095b2bc414f Mon Sep 17 00:00:00 2001 From: chenshuai2144 Date: Wed, 24 Feb 2021 23:24:57 +0800 Subject: [PATCH] fix: fix react-jsx test error --- src/components/GlobalHeader/NoticeIconView.tsx | 2 +- src/global.tsx | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/GlobalHeader/NoticeIconView.tsx b/src/components/GlobalHeader/NoticeIconView.tsx index e0461a8b..87635e87 100644 --- a/src/components/GlobalHeader/NoticeIconView.tsx +++ b/src/components/GlobalHeader/NoticeIconView.tsx @@ -1,4 +1,4 @@ -import React, { Component } from 'react'; +import { Component } from 'react'; import type { ConnectProps } from 'umi'; import { connect } from 'umi'; import { Tag, message } from 'antd'; diff --git a/src/global.tsx b/src/global.tsx index f38bb76b..5335e36b 100644 --- a/src/global.tsx +++ b/src/global.tsx @@ -1,6 +1,4 @@ import { Button, message, notification } from 'antd'; - -import React from 'react'; import { useIntl } from 'umi'; import defaultSettings from '../config/defaultSettings'; @@ -75,6 +73,7 @@ if (pwa) { }); // remove all caches + // @ts-ignore if (window.caches && window.caches.keys) { caches.keys().then((keys) => { keys.forEach((key) => {