From 4420ae2c224144c4114e5384bddc3e8ab0e1dc1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Tue, 25 Jun 2019 20:17:19 +0800 Subject: [PATCH] ci: sort import --- src/components/CopyBlock/index.tsx | 2 +- src/components/GlobalHeader/AvatarDropdown.tsx | 1 + src/components/HeaderSearch/index.tsx | 2 +- src/components/SelectLang/index.tsx | 1 + src/layouts/UserLayout.tsx | 1 + src/pages/404.tsx | 2 +- src/pages/Authorized.tsx | 1 + 7 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/CopyBlock/index.tsx b/src/components/CopyBlock/index.tsx index fb9d8ac0..810e9c1d 100644 --- a/src/components/CopyBlock/index.tsx +++ b/src/components/CopyBlock/index.tsx @@ -1,7 +1,7 @@ import { Icon, Popover, Typography } from 'antd'; +import React, { useRef } from 'react'; import { FormattedMessage } from 'umi-plugin-react/locale'; -import React, { useRef } from 'react'; import { connect } from 'dva'; import { isAntDesignPro } from '@/utils/utils'; import styles from './index.less'; diff --git a/src/components/GlobalHeader/AvatarDropdown.tsx b/src/components/GlobalHeader/AvatarDropdown.tsx index 2d105d51..d2338043 100644 --- a/src/components/GlobalHeader/AvatarDropdown.tsx +++ b/src/components/GlobalHeader/AvatarDropdown.tsx @@ -1,5 +1,6 @@ import { Avatar, Icon, Menu, Spin } from 'antd'; import { ConnectProps, ConnectState } from '@/models/connect'; + import { ClickParam } from 'antd/es/menu'; import { CurrentUser } from '@/models/user'; import { FormattedMessage } from 'umi-plugin-react/locale'; diff --git a/src/components/HeaderSearch/index.tsx b/src/components/HeaderSearch/index.tsx index a6e8698e..85258d47 100644 --- a/src/components/HeaderSearch/index.tsx +++ b/src/components/HeaderSearch/index.tsx @@ -1,7 +1,7 @@ import { AutoComplete, Icon, Input } from 'antd'; +import { AutoCompleteProps, DataSourceItemType } from 'antd/es/auto-complete'; import React, { Component } from 'react'; -import { DataSourceItemType, AutoCompleteProps } from 'antd/es/auto-complete'; import classNames from 'classnames'; import debounce from 'lodash/debounce'; import styles from './index.less'; diff --git a/src/components/SelectLang/index.tsx b/src/components/SelectLang/index.tsx index c45354db..1610646e 100644 --- a/src/components/SelectLang/index.tsx +++ b/src/components/SelectLang/index.tsx @@ -1,5 +1,6 @@ import { Icon, Menu } from 'antd'; import { formatMessage, getLocale, setLocale } from 'umi-plugin-react/locale'; + import { ClickParam } from 'antd/es/menu'; import React from 'react'; import classNames from 'classnames'; diff --git a/src/layouts/UserLayout.tsx b/src/layouts/UserLayout.tsx index 55cf9314..30397dd3 100644 --- a/src/layouts/UserLayout.tsx +++ b/src/layouts/UserLayout.tsx @@ -1,5 +1,6 @@ import { ConnectProps, ConnectState } from '@/models/connect'; import { DefaultFooter, MenuDataItem, getMenuData, getPageTitle } from '@ant-design/pro-layout'; + import DocumentTitle from 'react-document-title'; import Link from 'umi/link'; import React from 'react'; diff --git a/src/pages/404.tsx b/src/pages/404.tsx index 80fe09c9..47d6df70 100644 --- a/src/pages/404.tsx +++ b/src/pages/404.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import { Button } from 'antd'; +import React from 'react'; import router from 'umi/router'; // 这里应该使用 antd 的 404 result 组件, diff --git a/src/pages/Authorized.tsx b/src/pages/Authorized.tsx index 8de52d42..1bfd8267 100644 --- a/src/pages/Authorized.tsx +++ b/src/pages/Authorized.tsx @@ -1,4 +1,5 @@ import { ConnectProps, ConnectState, Route, UserModelState } from '@/models/connect'; + import Authorized from '@/utils/Authorized'; import React from 'react'; import Redirect from 'umi/redirect'; -- GitLab