Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
k0stik committed Jun 13, 2024
1 parent 0db1dab commit 546e165
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { PaperProps } from "@mui/material";
import { DrawerProps } from "@mui/material/Drawer";
import React from "react";
export type MUIDrawerProps = Omit<DrawerProps, "variant" | "anchor" | "onClose" | "SlideProps" | "PaperProps">;
export interface ResizableDrawerProps extends MUIDrawerProps {
onClose: () => void;
refocusChild?: boolean;
childIdToRefocus?: string;
paperProps?: object;
paperProps?: PaperProps;
containerRef?: React.RefObject<HTMLDivElement>;
}
export default function ResizableDrawer({ children, onClose, refocusChild, childIdToRefocus, paperProps, containerRef, ...drawerProps }: ResizableDrawerProps): React.JSX.Element;
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ export default function ResizableDrawer({ children, onClose, refocusChild = fals
style: {
...drawerStyles,
height,
// @ts-ignore
...((paperProps === null || paperProps === void 0 ? void 0 : paperProps.style) || {}),
},
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import CloseIcon from "@mui/icons-material/Close";
import KeyboardArrowDownIcon from "@mui/icons-material/KeyboardArrowDown";
import KeyboardArrowUpIcon from "@mui/icons-material/KeyboardArrowUp";
import { PaperProps } from "@mui/material";
import Box from "@mui/material/Box";
import Drawer, { DrawerProps } from "@mui/material/Drawer";
import { styled, Theme } from "@mui/material/styles";
Expand Down Expand Up @@ -115,7 +116,7 @@ export interface ResizableDrawerProps extends MUIDrawerProps {
onClose: () => void;
refocusChild?: boolean;
childIdToRefocus?: string;
paperProps?: object;
paperProps?: PaperProps;
containerRef?: React.RefObject<HTMLDivElement>;
}

Expand Down Expand Up @@ -151,7 +152,6 @@ export default function ResizableDrawer({
style: {
...drawerStyles,
height,
// @ts-ignore
...(paperProps?.style || {}),
},
};
Expand Down

0 comments on commit 546e165

Please sign in to comment.