Skip to content

Commit

Permalink
Make this function more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentSmedinga committed May 6, 2024
1 parent 8ed90ad commit cb31399
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion storybook/src/components/Dialog/Dialog.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ import { Button, Dialog, Heading, Paragraph } from '@amsterdam/design-system-rea
import { Meta, StoryObj } from '@storybook/react'
import { MouseEvent } from 'react'

const closeDialog = (event: MouseEvent<HTMLButtonElement>) => event.currentTarget.closest('dialog')?.close()
const closeDialog = (event: MouseEvent<HTMLButtonElement>) => {
return event.currentTarget.closest('dialog')?.close()
}

const meta = {
title: 'Components/Containers/Dialog',
Expand Down

0 comments on commit cb31399

Please sign in to comment.