Skip to content

Commit

Permalink
DataViews: fix RenderModal props in storybook (WordPress#64901)
Browse files Browse the repository at this point in the history
Co-authored-by: oandregal <[email protected]>
Co-authored-by: ntsekouras <[email protected]>
  • Loading branch information
3 people authored and bph committed Aug 31, 2024
1 parent 51bed57 commit f39a472
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
Expand Down

0 comments on commit f39a472

Please sign in to comment.