Skip to content
Snippets Groups Projects
Commit a1ee18e8 authored by Arie Peterson's avatar Arie Peterson
Browse files

Merge branch '22-modalprops-variable-names-don-t-match' into 'main'

Resolve "ModalProps variable names don't match"

Closes #22

See merge request !9
parents 3f7074dd e3142e64
No related branches found
No related tags found
1 merge request!9Resolve "ModalProps variable names don't match"
...@@ -3,7 +3,7 @@ import type { ModalProps } from '../components/modal/Modal'; ...@@ -3,7 +3,7 @@ import type { ModalProps } from '../components/modal/Modal';
export const Modal = ({ export const Modal = ({
children, children,
DOMNode = 'body', DOMNodeSelector = 'body',
curtain = true, curtain = true,
closeCallback, closeCallback,
defaultActionCallback, defaultActionCallback,
...@@ -38,7 +38,7 @@ export const Modal = ({ ...@@ -38,7 +38,7 @@ export const Modal = ({
<main>{children}</main> <main>{children}</main>
<footer>{buttons}</footer> <footer>{buttons}</footer>
<div> <div>
{typeof DOMNode == 'string' ? DOMNode : JSON.stringify(DOMNode)} -{' '} {typeof DOMNodeSelector == 'string' ? DOMNodeSelector : JSON.stringify(DOMNodeSelector)} -{' '}
{curtain ? 'curtain' : ''} {curtain ? 'curtain' : ''}
</div> </div>
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment