Browse Source

fix: fix react-jsx test error

pull/8134/head
chenshuai2144 5 years ago
parent
commit
f45c433c1d
  1. 2
      src/components/GlobalHeader/NoticeIconView.tsx
  2. 3
      src/global.tsx

2
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';

3
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) => {

Loading…
Cancel
Save