Skip to content

Commit

Permalink
feat: Add centered prop to Modal
Browse files Browse the repository at this point in the history
  • Loading branch information
ekraffmiller committed Oct 1, 2024
1 parent 47ac8bf commit 6d1faab
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/design-system/src/lib/components/modal/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ import { ModalFooter } from './ModalFooter'
interface ModalProps {
show: boolean
onHide: () => void
centered?: boolean
size?: 'sm' | 'lg' | 'xl'
}

function Modal({ show, onHide, size, children }: PropsWithChildren<ModalProps>) {
function Modal({ show, onHide, centered, size, children }: PropsWithChildren<ModalProps>) {
return (
<BSModal show={show} onHide={onHide} size={size}>
<BSModal centered={centered} show={show} onHide={onHide} size={size}>
{children}
</BSModal>
)
Expand Down

0 comments on commit 6d1faab

Please sign in to comment.