Skip to content

Commit

Permalink
fix(layout): remove procard use antd card
Browse files Browse the repository at this point in the history
close #6743
  • Loading branch information
chenshuai2144 committed Mar 10, 2023
1 parent 1aef380 commit 02e1830
Show file tree
Hide file tree
Showing 4 changed files with 655 additions and 641 deletions.
8 changes: 3 additions & 5 deletions packages/layout/src/components/Help/index.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { CloseOutlined, ProfileOutlined } from '@ant-design/icons';
import ProCard from '@ant-design/pro-card';
import { ProProvider } from '@ant-design/pro-provider';
import classNames from 'classnames';
import type { ImageProps, PopoverProps, ModalProps, DrawerProps } from 'antd';
import { Popover, Menu, Image, Typography, ConfigProvider, Drawer, Modal } from 'antd';
import { Popover, Menu, Image, Typography, Card, ConfigProvider, Drawer, Modal } from 'antd';
import type { AnchorHTMLAttributes } from 'react';
import React, { useContext, useMemo, useState } from 'react';
import useMergedState from 'rc-util/lib/hooks/useMergedState';
Expand Down Expand Up @@ -204,9 +203,8 @@ export const ProHelpPanel: React.FC<ProHelpPanelProps> = ({
});

return wrapSSR(
<ProCard
<Card
bordered={bordered}
headerBordered
title="帮助中心"
bodyStyle={{
display: 'flex',
Expand Down Expand Up @@ -318,7 +316,7 @@ export const ProHelpPanel: React.FC<ProHelpPanelProps> = ({
>
{selectedKey ? <ProHelpContentPanel selectedKey={selectedKey} /> : null}
</div>
</ProCard>,
</Card>,
);
};

Expand Down
Loading

0 comments on commit 02e1830

Please sign in to comment.