Browse Source

fix: update deprecated props in antd components

pull/11604/head
afc163 3 months ago
parent
commit
d91b4092f5
  1. 4
      src/components/HeaderDropdown/index.tsx
  2. 2
      src/pages/Admin.tsx
  3. 2
      src/pages/table-list/index.tsx
  4. 2
      src/pages/user/login/index.tsx

4
src/components/HeaderDropdown/index.tsx

@ -32,7 +32,9 @@ const HeaderDropdown: React.FC<HeaderDropdownProps> = ({
const { styles } = useStyles(); const { styles } = useStyles();
return ( return (
<Dropdown <Dropdown
overlayClassName={classNames(styles.dropdown, cls)} classNames={{
root: classNames(styles.dropdown, cls),
}}
{...restProps} {...restProps}
/> />
); );

2
src/pages/Admin.tsx

@ -15,7 +15,7 @@ const Admin: React.FC = () => {
> >
<Card> <Card>
<Alert <Alert
message={intl.formatMessage({ title={intl.formatMessage({
id: 'pages.welcome.alertMessage', id: 'pages.welcome.alertMessage',
defaultMessage: defaultMessage:
'Faster and stronger heavy-duty components have been released.', 'Faster and stronger heavy-duty components have been released.',

2
src/pages/table-list/index.tsx

@ -312,7 +312,7 @@ const TableList: React.FC = () => {
)} )}
<Drawer <Drawer
width={600} size={600}
open={showDetail} open={showDetail}
onClose={() => { onClose={() => {
setCurrentRow(undefined); setCurrentRow(undefined);

2
src/pages/user/login/index.tsx

@ -103,7 +103,7 @@ const LoginMessage: React.FC<{
style={{ style={{
marginBottom: 24, marginBottom: 24,
}} }}
message={content} title={content}
type="error" type="error"
showIcon showIcon
/> />

Loading…
Cancel
Save