Browse Source

chore: update code via biome lint

pull/11501/head
afc163 1 year ago
parent
commit
c37d9794af
  1. 2
      src/pages/account/center/index.tsx
  2. 2
      src/pages/list/search/applications/components/TagSelect/index.tsx
  3. 2
      src/pages/list/search/articles/components/TagSelect/index.tsx
  4. 2
      src/pages/list/search/articles/index.tsx
  5. 2
      src/pages/list/search/index.tsx
  6. 2
      src/pages/list/search/projects/components/TagSelect/index.tsx
  7. 2
      src/pages/list/table-list/service.ts
  8. 4
      src/pages/table-list/components/CreateForm.tsx

2
src/pages/account/center/index.tsx

@ -1,7 +1,7 @@
import { ClusterOutlined, ContactsOutlined, HomeOutlined, PlusOutlined } from '@ant-design/icons';
import { GridContent } from '@ant-design/pro-components';
import { useRequest } from '@umijs/max';
import { Avatar, Card, Col, Divider, Input, InputRef, Row, Tag } from 'antd';
import { Avatar, Card, Col, Divider, Input, type InputRef, Row, Tag } from 'antd';
import React, { useRef, useState } from 'react';
import useStyles from './Center.style';
import Applications from './components/Applications';

2
src/pages/list/search/applications/components/TagSelect/index.tsx

@ -2,7 +2,7 @@ import { DownOutlined, UpOutlined } from '@ant-design/icons';
import { Tag } from 'antd';
import classNames from 'classnames';
import { useMergedState } from 'rc-util';
import React, { FC, useState } from 'react';
import React, { type FC, useState } from 'react';
import useStyles from './index.style';
const { CheckableTag } = Tag;
export interface TagSelectOptionProps {

2
src/pages/list/search/articles/components/TagSelect/index.tsx

@ -2,7 +2,7 @@ import { DownOutlined, UpOutlined } from '@ant-design/icons';
import { Tag } from 'antd';
import classNames from 'classnames';
import { useMergedState } from 'rc-util';
import React, { FC, useState } from 'react';
import React, { type FC, useState } from 'react';
import useStyles from './index.style';
const { CheckableTag } = Tag;
export interface TagSelectOptionProps {

2
src/pages/list/search/articles/index.tsx

@ -1,7 +1,7 @@
import { LikeOutlined, LoadingOutlined, MessageOutlined, StarOutlined } from '@ant-design/icons';
import { useRequest } from '@umijs/max';
import { Button, Card, Col, Form, List, Row, Select, Tag } from 'antd';
import { DefaultOptionType } from 'antd/es/select';
import type { DefaultOptionType } from 'antd/es/select';
import type { FC } from 'react';
import React, { useMemo } from 'react';
import { categoryOptions } from '../../mock';

2
src/pages/list/search/index.tsx

@ -24,7 +24,7 @@ const tabList = [
const Search: FC<SearchProps> = () => {
const location = useLocation();
let match = useMatch(location.pathname);
const match = useMatch(location.pathname);
const handleTabChange = (key: string) => {
const url =
match?.pathname === '/' ? '' : match?.pathname.substring(0, match.pathname.lastIndexOf('/'));

2
src/pages/list/search/projects/components/TagSelect/index.tsx

@ -2,7 +2,7 @@ import { DownOutlined, UpOutlined } from '@ant-design/icons';
import { Tag } from 'antd';
import classNames from 'classnames';
import { useMergedState } from 'rc-util';
import React, { FC, useState } from 'react';
import React, { type FC, useState } from 'react';
import useStyles from './index.style';
const { CheckableTag } = Tag;
export interface TagSelectOptionProps {

2
src/pages/list/table-list/service.ts

@ -1,7 +1,7 @@
// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';
import { TableListItem } from './data';
import type { TableListItem } from './data';
/** 获取规则列表 GET /api/rule */
export async function rule(

4
src/pages/table-list/components/CreateForm.tsx

@ -1,9 +1,9 @@
import { addRule } from '@/services/ant-design-pro/api';
import { PlusOutlined } from '@ant-design/icons';
import { ActionType, ModalForm, ProFormText, ProFormTextArea } from '@ant-design/pro-components';
import { type ActionType, ModalForm, ProFormText, ProFormTextArea } from '@ant-design/pro-components';
import { FormattedMessage, useIntl, useRequest } from '@umijs/max';
import { Button, message } from 'antd';
import { FC } from 'react';
import type { FC } from 'react';
interface CreateFormProps {
reload?: ActionType['reload'];

Loading…
Cancel
Save