Skip to content

Commit

Permalink
fix: fix type in callback of default interface
Browse files Browse the repository at this point in the history
  • Loading branch information
axe312ger committed Dec 19, 2023
1 parent e242667 commit d98cae0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/interface-default/src/interface.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, {
MouseEvent,
Suspense,
useCallback,
useContext,
Expand Down Expand Up @@ -73,7 +74,7 @@ export const Interface: React.FC<InterfaceProps> = ({
const formContainerRef = useRef<HTMLDivElement>(null)

const toggleControlForm = useCallback(
(e: Event) => {
(e: MouseEvent) => {
e.preventDefault()
setFormVisible(!formVisible)
},
Expand Down

0 comments on commit d98cae0

Please sign in to comment.