Skip to content

Commit

Permalink
fix: React is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Aug 30, 2024
1 parent 764a293 commit b8f72d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ import type { Settings as LayoutSettings } from '@ant-design/pro-components';
import { SettingDrawer } from '@ant-design/pro-components';
import type { RunTimeLayoutConfig } from '@umijs/max';
import { history, Link } from '@umijs/max';
import React from 'react';
import defaultSettings from '../config/defaultSettings';
import { errorConfig } from './requestErrorConfig';

const isDev = process.env.NODE_ENV === 'development';
const loginPath = '/user/login';

Expand Down
1 change: 1 addition & 0 deletions src/components/RightContent/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { QuestionCircleOutlined } from '@ant-design/icons';
import { SelectLang as UmiSelectLang } from '@umijs/max';
import React from 'react';

export type SiderTheme = 'light' | 'dark';

Expand Down

0 comments on commit b8f72d4

Please sign in to comment.