Skip to content

Commit

Permalink
Fix RenderModal props
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Aug 29, 2024
1 parent 482c188 commit 9c455ba
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,11 @@ export const actions = [
isPrimary: true,
icon: trash,
hideModalHeader: true,
RenderModal: ( { item, closeModal } ) => {
RenderModal: ( { items, closeModal } ) => {
return (
<VStack spacing="5">
<Text>
{ `Are you sure you want to delete "${ item.title }"?` }
{ `Are you sure you want to delete "${ items[ 0 ].title }"?` }
</Text>
<HStack justify="right">
<Button variant="tertiary" onClick={ closeModal }>
Expand Down

0 comments on commit 9c455ba

Please sign in to comment.