21842: fixed lost anchorEl bug
[arvados.git] / services / workbench2 / src / components / dialog-actions / dialog-actions.tsx
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import { DialogActions as MuiDialogActions } from '@mui/material/';
6 import { CustomStyleRulesCallback } from 'common/custom-theme';
7 import withStyles from '@mui/styles/withStyles';
8
9 const styles: CustomStyleRulesCallback<'root'> = theme => {
10     const margin = theme.spacing(3);
11     return {
12         root: {
13             marginRight: margin,
14             marginBottom: margin,
15             marginLeft: margin,
16         },
17     };
18 };
19 export const DialogActions = withStyles(styles)(MuiDialogActions);