Skip to content

Commit

Permalink
typo fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
sabitalizade committed May 30, 2024
1 parent 2b38616 commit 2eb611c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/components/Drawer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const ResizableDrawer = ({
children,
...props
}: PropsWithChildren & ResizableDrawerProps) => {
const { resizeable = true } = props;
const { resizable = true } = props;
const [drawerWidth, setDrawerWidth] = useState(props.width || 378);
// eslint-disable-next-line react-hooks/exhaustive-deps
const cbHandleMouseMove = React.useCallback(handleMousemove, []);
Expand Down Expand Up @@ -57,7 +57,7 @@ const ResizableDrawer = ({

return (
<Drawer {...props} width={drawerWidth} {...motionProps}>
{resizeable && (
{resizable && (
<div className="sidebar-dragger" onMouseDown={handleMousedown} />
)}
{props?.title && (
Expand Down
2 changes: 1 addition & 1 deletion lib/components/Drawer/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ export type ResizableDrawerProps = DrawerProps & {
titleClosable?: boolean;
minWidth?: number;
maxWidth?: number;
resizeable?: boolean;
resizable?: boolean;
onResize?: (width: number) => void;
};

0 comments on commit 2eb611c

Please sign in to comment.