Skip to content

Commit

Permalink
feat: add className to Modal
Browse files Browse the repository at this point in the history
  • Loading branch information
cazala committed Nov 1, 2024
1 parent 6f01e75 commit 69673c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Modal/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ const ModalContent = React.memo(
)

const Modal = React.memo((props: ModalProps) => {
const { open, onClose, children, ...modalContentProps } = props
const { open, onClose, children, className, ...modalContentProps } = props
return (
<BaseModal open={open} onClose={onClose}>
<BaseModal open={open} onClose={onClose} className={className}>
<ModalContent {...modalContentProps} onClose={onClose}>
{children}
</ModalContent>
Expand Down
1 change: 1 addition & 0 deletions src/components/Modal/Modal.types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
type ModalProps = {
open: boolean
size?: "tiny" | "small" | "medium" | "large"
className?: string
title?: string
subtitle?: string
header?: React.ReactNode
Expand Down

0 comments on commit 69673c9

Please sign in to comment.