Skip to content

Commit 4f6e159

Browse files
Karim K. Kanjisiddharthkp
andauthored
Fixed an issue with ButtonDanger Not defined. (#2128)
Replaced ButtonDanger with Button Component with the props variant="danger" Co-authored-by: Siddharth Kshetrapal <[email protected]>
1 parent 493dc99 commit 4f6e159

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/content/Details.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ You can also manually show/hide the content using the `setOpen` function returne
5252
<Details {...getDetailsProps()}>
5353
<Button as="summary">Delete item</Button>
5454
Are you sure?
55-
<ButtonDanger onClick={() => setOpen(false)}>Yes I'm sure</ButtonDanger>
55+
<Button variant="danger" onClick={() => setOpen(false)}>Yes I'm sure</Button>
5656
</Details>
5757
)
5858
}}

0 commit comments

Comments
 (0)