Skip to content

Commit

Permalink
feat(Dialog): add className property to DialogFooter (#1909)
Browse files Browse the repository at this point in the history
  • Loading branch information
gearoffortune authored Oct 21, 2024
1 parent 3069194 commit 679c537
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/Dialog/DialogFooter/DialogFooter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ interface DialogFooterOwnProps {
buttonApply: React.ReactNode,
buttonCancel: React.ReactNode,
) => React.ReactNode;
className?: string;
}

interface DialogFooterDefaultProps {
Expand Down Expand Up @@ -96,6 +97,7 @@ export class DialogFooter extends React.Component<DialogFooterInnerProps> {
errorText,
showError,
renderButtons,
className,
} = this.props;

const buttonCancel = (
Expand Down Expand Up @@ -144,7 +146,7 @@ export class DialogFooter extends React.Component<DialogFooterInnerProps> {
);

return (
<div className={b()}>
<div className={b(null, className)}>
<div className={b('children')}>{children}</div>
<div className={b('bts-wrapper')}>
{renderButtons ? (
Expand Down

0 comments on commit 679c537

Please sign in to comment.