Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
MH4GF committed Dec 16, 2024
1 parent 19e499a commit 4cef3ec
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
import { IconButton, TidyUpIcon } from '@liam-hq/ui'
import { ToolbarButton } from '@radix-ui/react-toolbar'
import type { FC } from 'react'
import { type FC, useCallback } from 'react'
import { useAutoLayout } from '../../useAutoLayout'

export const TidyUpButton: FC = () => {
const { handleLayout } = useAutoLayout()
const handleClick = useCallback(() => {
handleLayout()
}, [handleLayout])

return (
<ToolbarButton asChild>
<IconButton
icon={<TidyUpIcon />}
tooltipContent="Tidy up"
onClick={handleLayout}
onClick={handleClick}
/>
</ToolbarButton>
)
Expand Down

0 comments on commit 4cef3ec

Please sign in to comment.