fix(striker-ui): expose additional props in Panel

main
Tsu-ba-me 2 years ago
parent 8e522246a8
commit a9cb1da195
  1. 13
      striker-ui/components/Panels/Panel.tsx

@ -1,3 +1,4 @@
import { FC } from 'react';
import { Box, GlobalStyles, PaperProps, styled } from '@mui/material'; import { Box, GlobalStyles, PaperProps, styled } from '@mui/material';
import { import {
@ -74,14 +75,20 @@ const styledScrollbars = (
/> />
); );
const Panel = ({ const Panel: FC<PanelProps> = ({
children, children,
classes: rootClasses, classes: rootClasses,
className: rootClassName, className: rootClassName,
sx: rootSx, sx: rootSx,
}: PanelProps): JSX.Element => ( ...restRootProps
}) => (
<StyledBox <StyledBox
{...{ classes: rootClasses, className: rootClassName, sx: rootSx }} {...{
classes: rootClasses,
className: rootClassName,
sx: rootSx,
...restRootProps,
}}
> >
{styledScrollbars} {styledScrollbars}
<div className={`${classes.square} ${classes.topSquare}`} /> <div className={`${classes.square} ${classes.topSquare}`} />

Loading…
Cancel
Save