diff --git a/jest.config.ts b/jest.config.ts index 8fc87ad1..99051c41 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -1,7 +1,6 @@ -import type { Config } from '@jest/types'; import { configUmiAlias, createConfig } from '@umijs/max/test'; -export default async (): Promise => { +export default async (): Promise => { const config = await configUmiAlias({ ...createConfig({ target: 'browser', diff --git a/src/pages/account/settings/components/binding.tsx b/src/pages/account/settings/components/binding.tsx index 8ddfc7f3..4e2d1301 100644 --- a/src/pages/account/settings/components/binding.tsx +++ b/src/pages/account/settings/components/binding.tsx @@ -4,7 +4,7 @@ import { TaobaoOutlined, } from '@ant-design/icons'; import { List } from 'antd'; -import React, { Fragment } from 'react'; +import React from 'react'; const BindingView: React.FC = () => { const getData = () => [ @@ -29,21 +29,19 @@ const BindingView: React.FC = () => { ]; return ( - - ( - - - - )} - /> - + ( + + + + )} + /> ); }; diff --git a/src/pages/account/settings/components/notification.tsx b/src/pages/account/settings/components/notification.tsx index 628513e2..85d42d7f 100644 --- a/src/pages/account/settings/components/notification.tsx +++ b/src/pages/account/settings/components/notification.tsx @@ -1,5 +1,5 @@ import { List, Switch } from 'antd'; -import React, { Fragment } from 'react'; +import React from 'react'; type Unpacked = T extends (infer U)[] ? U : T; @@ -29,17 +29,15 @@ const NotificationView: React.FC = () => { const data = getData(); return ( - - > - itemLayout="horizontal" - dataSource={data} - renderItem={(item) => ( - - - - )} - /> - + > + itemLayout="horizontal" + dataSource={data} + renderItem={(item) => ( + + + + )} + /> ); }; diff --git a/src/pages/profile/advanced/index.tsx b/src/pages/profile/advanced/index.tsx index 092a1794..9aba9d1e 100644 --- a/src/pages/profile/advanced/index.tsx +++ b/src/pages/profile/advanced/index.tsx @@ -27,7 +27,7 @@ import { } from 'antd'; import classNames from 'classnames'; import type { FC } from 'react'; -import React, { Fragment, useState } from 'react'; +import React, { useState } from 'react'; import type { AdvancedProfileData } from './data.d'; import { queryAdvancedProfile } from './service'; import useStyles from './style.style'; @@ -187,28 +187,24 @@ const Advanced: FC = () => { ); const desc1 = (
- - 曲丽丽 - - + 曲丽丽 +
2016-12-12 12:32
); const desc2 = (
- - 周毛毛 - - + 周毛毛 +