Fix variable typo (#8084)

This commit is contained in:
Nam Vu
2024-09-08 12:14:11 +07:00
committed by GitHub
parent b1918dae5e
commit 2d7954c7da
215 changed files with 599 additions and 597 deletions

View File

@@ -5,7 +5,7 @@ import {
useState,
} from 'react'
export type UseResizePanelPrarams = {
export type UseResizePanelParams = {
direction?: 'horizontal' | 'vertical' | 'both'
triggerDirection?: 'top' | 'right' | 'bottom' | 'left' | 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left'
minWidth?: number
@@ -15,7 +15,7 @@ export type UseResizePanelPrarams = {
onResized?: (width: number, height: number) => void
onResize?: (width: number, height: number) => void
}
export const useResizePanel = (params?: UseResizePanelPrarams) => {
export const useResizePanel = (params?: UseResizePanelParams) => {
const {
direction = 'both',
triggerDirection = 'bottom-right',