Skip to content

Commit

Permalink
fix: nativeid in toast
Browse files Browse the repository at this point in the history
  • Loading branch information
Viraj-10 committed Oct 19, 2023
1 parent a13725a commit 8feb9c1
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ This is an illustration of a **Themed Toast** component with default configurati
placement:"top",
render: ({ id }) => {
return (
<Toast nativeID={id} {...props}>
<Toast nativeID={`toast-${id}`} {...props}>
<VStack space="xs">
<ToastTitle>New Message</ToastTitle>
<ToastDescription >
Expand Down Expand Up @@ -446,7 +446,7 @@ A versatile Toast component with customizable actions, enabling users to take va
placement:"top",
render: ({ id }) => {
return (
<Toast nativeID={id} action={action.actionType}>
<Toast nativeID={`toast-${id}`} action={action.actionType}>
<VStack space="xs">
<ToastTitle>{action.title}</ToastTitle>
<ToastDescription >
Expand Down Expand Up @@ -510,7 +510,7 @@ A versatile Toast component with multiple variants, offering different styles an
placement:"top",
render: ({ id }) => {
return (
<Toast nativeID={id} {...props} action='success'>
<Toast nativeID={`toast-${id}`} {...props} action='success'>
<VStack space="xs">
<ToastTitle>Attention!</ToastTitle>
<ToastDescription >
Expand Down Expand Up @@ -580,7 +580,7 @@ A Toast component with different placement options allows for the flexible posit
placement: placement,
render: ({ id }) => {
return (
<Toast nativeId={id}>
<Toast nativeID={`toast-${id}`}>
<ToastDescription>{placements[placement]}</ToastDescription>
</Toast>
);
Expand Down

0 comments on commit 8feb9c1

Please sign in to comment.