We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecceb97 commit 8a9453cCopy full SHA for 8a9453c
react/Dialog/index.jsx
@@ -1,15 +1,21 @@
1
import { default as MUIDialog } from '@material-ui/core/Dialog'
2
+import cx from 'classnames'
3
import React from 'react'
4
5
import { useDialogEffects } from './DialogEffects'
6
import { useCozyTheme } from '../providers/CozyTheme'
7
-const Dialog = props => {
8
+const Dialog = ({ className, ...props }) => {
9
const { type, variant } = useCozyTheme()
10
11
useDialogEffects(props.open, props.fullScreen)
12
- return <MUIDialog className={`CozyTheme--${type}-${variant}`} {...props} />
13
+ return (
14
+ <MUIDialog
15
+ className={cx(`CozyTheme--${type}-${variant}`, className)}
16
+ {...props}
17
+ />
18
+ )
19
}
20
21
Dialog.defaultProps = {
0 commit comments