Skip to content

Commit

Permalink
wording
Browse files Browse the repository at this point in the history
  • Loading branch information
smmr-dn committed Sep 30, 2024
1 parent 19584c7 commit 6801195
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion apps/website/src/content/docs/toast.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ When setting the `hasCloseButton` option available in the status method to `true
<AllExamples.ToastHasCloseButtonExample client:load />
</LiveExample>

Additionally, to implement further actions upon the closing of each toast or chain one toast after the other, you can retrieve the `close()` function returned from the status method.
Additionally, to implement further actions upon the closing of each toast or chain one toast after another, you can retrieve the `close()` function returned from the status method.

<LiveExample src='Toast.close.jsx'>
<AllExamples.ToastCloseExample client:load />
Expand Down
6 changes: 1 addition & 5 deletions examples/Toast.close.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@ export default () => {
const displayProcessToast = () => {
const { close } = toaster.informational(
<Flex>
<ProgressRadial
size={'small'}
indeterminate
style={{ marginRight: '8px' }}
/>
<ProgressRadial size='small' />
Your process is running...
</Flex>,
);
Expand Down

0 comments on commit 6801195

Please sign in to comment.