Browse Source

fix: import React

pull/11496/head
afc163 9 months ago
parent
commit
1eef7dbd4c
  1. 13
      biome.json
  2. 2
      src/components/Footer/index.tsx
  3. 2
      src/components/HeaderDropdown/index.tsx
  4. 2
      src/components/RightContent/AvatarDropdown.tsx
  5. 2
      src/pages/404.tsx
  6. 2
      src/pages/Admin.tsx
  7. 2
      src/pages/TableList/components/UpdateForm.tsx
  8. 3
      src/pages/TableList/index.tsx
  9. 3
      src/pages/User/Login/index.tsx
  10. 2
      src/pages/Welcome.tsx

13
biome.json

@ -10,10 +10,10 @@
"!**/.umi-test-production",
"!**/src/services",
"!**/mock",
"!**/dist/**",
"!**/server/**",
"!**/public/**"
"!**/public/**",
"!biome.json"
]
},
"formatter": {
@ -34,16 +34,9 @@
}
},
"javascript": {
"jsxRuntime": "reactClassic",
"formatter": {
"quoteStyle": "single"
}
},
"assist": {
"enabled": true,
"actions": {
"source": {
"organizeImports": "on"
}
}
}
}

2
src/components/Footer/index.tsx

@ -1,6 +1,6 @@
import { GithubOutlined } from '@ant-design/icons';
import { DefaultFooter } from '@ant-design/pro-components';
import type React from 'react';
import React from 'react';
const Footer: React.FC = () => {
return (

2
src/components/HeaderDropdown/index.tsx

@ -2,7 +2,7 @@ import { Dropdown } from 'antd';
import type { DropDownProps } from 'antd/es/dropdown';
import { createStyles } from 'antd-style';
import classNames from 'classnames';
import type React from 'react';
import React from 'react';
const useStyles = createStyles(({ token }) => {
return {

2
src/components/RightContent/AvatarDropdown.tsx

@ -7,7 +7,7 @@ import { history, useModel } from '@umijs/max';
import type { MenuProps } from 'antd';
import { Spin } from 'antd';
import { createStyles } from 'antd-style';
import type React from 'react';
import React from 'react';
import { flushSync } from 'react-dom';
import { outLogin } from '@/services/ant-design-pro/api';
import HeaderDropdown from '../HeaderDropdown';

2
src/pages/404.tsx

@ -1,6 +1,6 @@
import { history, useIntl } from '@umijs/max';
import { Button, Result } from 'antd';
import type React from 'react';
import React from 'react';
const NoFoundPage: React.FC = () => (
<Result

2
src/pages/Admin.tsx

@ -2,7 +2,7 @@ import { HeartTwoTone, SmileTwoTone } from '@ant-design/icons';
import { PageContainer } from '@ant-design/pro-components';
import { useIntl } from '@umijs/max';
import { Alert, Card, Typography } from 'antd';
import type React from 'react';
import React from 'react';
const Admin: React.FC = () => {
const intl = useIntl();

2
src/pages/TableList/components/UpdateForm.tsx

@ -8,7 +8,7 @@ import {
} from '@ant-design/pro-components';
import { FormattedMessage, useIntl } from '@umijs/max';
import { Modal } from 'antd';
import type React from 'react';
import React from 'react';
export type FormValueType = {
target?: string;

3
src/pages/TableList/index.tsx

@ -15,8 +15,7 @@ import {
} from '@ant-design/pro-components';
import { FormattedMessage, useIntl } from '@umijs/max';
import { Button, Drawer, Input, message } from 'antd';
import type React from 'react';
import { useRef, useState } from 'react';
import React, { useRef, useState } from 'react';
import {
addRule,
removeRule,

3
src/pages/User/Login/index.tsx

@ -22,8 +22,7 @@ import {
} from '@umijs/max';
import { Alert, message, Tabs } from 'antd';
import { createStyles } from 'antd-style';
import type React from 'react';
import { useState } from 'react';
import React, { useState } from 'react';
import { flushSync } from 'react-dom';
import { Footer } from '@/components';
import { login } from '@/services/ant-design-pro/api';

2
src/pages/Welcome.tsx

@ -1,7 +1,7 @@
import { PageContainer } from '@ant-design/pro-components';
import { useModel } from '@umijs/max';
import { Card, theme } from 'antd';
import type React from 'react';
import React from 'react';
/**
*

Loading…
Cancel
Save