Skip to content

Commit

Permalink
feat(CozyDialogs): We can now propagates props to inner components
Browse files Browse the repository at this point in the history
such divider, dialogActions and dialogContent
  • Loading branch information
JF-Cozy committed Oct 3, 2024
1 parent 424ffac commit 01d9d48
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions react/CozyDialogs/useCozyDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,19 +92,22 @@ const useCozyDialog = props => {

const dividerClassName = 'divider--dialog'
const dividerProps = {
...componentsProps?.divider,
classes: {
root: dividerClassName
}
}

const dialogActionsClassName = 'cozyDialogActions'
const dialogActionsProps = {
...componentsProps?.dialogActions,
classes: {
root: dialogActionsClassName
}
}

const dialogContentProps = {
...componentsProps?.dialogContent,
classes: {
root: cx({
disableGutters
Expand Down

0 comments on commit 01d9d48

Please sign in to comment.