pull/1856/head
yann300 3 years ago
parent fbd30b436a
commit 57bfe546b9
  1. 6
      libs/remix-ui/terminal/src/lib/custom-hooks/useDragTerminal.tsx

@ -1,4 +1,4 @@
import { useEffect, useState } from 'react' import React, { useEffect, useState } from 'react'
export const useDragTerminal = (minHeight: number, defaultPosition: number) => { export const useDragTerminal = (minHeight: number, defaultPosition: number) => {
const [isOpen, setIsOpen] = useState(defaultPosition > minHeight) const [isOpen, setIsOpen] = useState(defaultPosition > minHeight)
@ -72,6 +72,6 @@ export const useDragTerminal = (minHeight: number, defaultPosition: number) => {
terminalPosition, terminalPosition,
isDragging, isDragging,
handleDraggingStart, handleDraggingStart,
handleToggleTerminal, handleToggleTerminal
} }
} }

Loading…
Cancel
Save