chore: fix the Warning of Alert demo (#50946)

This commit is contained in:
lijianan 2024-09-21 22:46:29 +08:00 committed by GitHub
parent 119eef9075
commit 14d00df048
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 6 deletions

View File

@ -271,11 +271,7 @@ Array [
]
`;
exports[`renders components/alert/demo/action.tsx extend context correctly 2`] = `
[
"Warning: [antd: Button] \`link\` or \`text\` button can't be a \`ghost\` button.",
]
`;
exports[`renders components/alert/demo/action.tsx extend context correctly 2`] = `[]`;
exports[`renders components/alert/demo/banner.tsx extend context correctly 1`] = `
Array [

View File

@ -32,7 +32,7 @@ const App: React.FC = () => (
type="warning"
action={
<Space>
<Button type="text" size="small" ghost>
<Button type="text" size="small">
Done
</Button>
</Space>