Browse Source

demo: use closable prop (#43542)

* Update closable.tsx

Added `closable` prop

Signed-off-by: Albert E. Hidalgo Taveras <35310226+itsalb3rt@users.noreply.github.com>

* Apply suggestions from code review

Signed-off-by: afc163 <afc163@gmail.com>

---------

Signed-off-by: Albert E. Hidalgo Taveras <35310226+itsalb3rt@users.noreply.github.com>
Signed-off-by: afc163 <afc163@gmail.com>
Co-authored-by: afc163 <afc163@gmail.com>
pull/43550/head
Albert E. Hidalgo Taveras 1 year ago
committed by GitHub
parent
commit
860e58ee6f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      components/alert/demo/closable.tsx

4
components/alert/demo/closable.tsx

@ -10,14 +10,14 @@ const App: React.FC = () => (
<Alert <Alert
message="Warning Text Warning Text Warning TextW arning Text Warning Text Warning TextWarning Text" message="Warning Text Warning Text Warning TextW arning Text Warning Text Warning TextWarning Text"
type="warning" type="warning"
closeIcon closable
onClose={onClose} onClose={onClose}
/> />
<Alert <Alert
message="Error Text" message="Error Text"
description="Error Description Error Description Error Description Error Description Error Description Error Description" description="Error Description Error Description Error Description Error Description Error Description Error Description"
type="error" type="error"
closeIcon closable
onClose={onClose} onClose={onClose}
/> />
</Space> </Space>

Loading…
Cancel
Save