Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion shesha-reactjs/src/designer-components/drawer/drawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ interface IShaDrawer {
placement?: 'top' | 'right' | 'bottom' | 'left';
width?: string | number;
readOnly?: boolean;
background?: CSSProperties;
}

interface IShaDrawerState {
Expand Down Expand Up @@ -54,6 +55,7 @@ const ShaDrawer: FC<IShaDrawer> = (props) => {
headerStyle,
footerStyle,
showFooter,
background,
} = props;
const allData = useAvailableConstantsData();
const [state, setState] = useState<IShaDrawerState>();
Expand Down Expand Up @@ -138,6 +140,7 @@ const ShaDrawer: FC<IShaDrawer> = (props) => {
</Fragment>
);
}

return (
<Drawer
open={state?.open}
Expand All @@ -147,7 +150,8 @@ const ShaDrawer: FC<IShaDrawer> = (props) => {
styles={{
header: { display: showHeader ? 'block' : 'none', ...headerStyle },
footer: { display: showFooter ? 'block' : 'none', ...footerStyle },
body: style,
body: background,
content: style,
}}
title={label}
size="large"
Expand Down
2 changes: 1 addition & 1 deletion shesha-reactjs/src/designer-components/drawer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ const DrawerComponent: IToolboxComponent<IDrawerProps> = {
...shadowStyles,
...stylingBoxAsCSS,
...borderStyles,
...backgroundStyles,
...jsStyle,
});

Expand All @@ -132,6 +131,7 @@ const DrawerComponent: IToolboxComponent<IDrawerProps> = {

return (
<ShaDrawer
background={backgroundStyles}
style={additionalStyles}
headerStyle={additionalHeaderStyles}
footerStyle={additionalFooterStyles}
Expand Down
Loading
Loading