Skip to content

Commit

Permalink
Fixed an issue with ButtonDanger Not defined. (#2128)
Browse files Browse the repository at this point in the history
Replaced ButtonDanger with Button Component with the props variant="danger"

Co-authored-by: Siddharth Kshetrapal <siddharthkp@github.com>
  • Loading branch information
Karim K. Kanji and siddharthkp committed Jun 20, 2022
1 parent 493dc99 commit 4f6e159
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/content/Details.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ You can also manually show/hide the content using the `setOpen` function returne
<Details {...getDetailsProps()}>
<Button as="summary">Delete item</Button>
Are you sure?
<ButtonDanger onClick={() => setOpen(false)}>Yes I'm sure</ButtonDanger>
<Button variant="danger" onClick={() => setOpen(false)}>Yes I'm sure</Button>
</Details>
)
}}
Expand Down

0 comments on commit 4f6e159

Please sign in to comment.