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
message="Warning Text Warning Text Warning TextW arning Text Warning Text Warning TextWarning Text"
type="warning"
closeIcon
closable
onClose={onClose}
/>
<Alert
message="Error Text"
description="Error Description Error Description Error Description Error Description Error Description Error Description"
type="error"
closeIcon
closable
onClose={onClose}
/>
</Space>

Loading…
Cancel
Save