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';
export const Modal = ({
children,
DOMNode = 'body',
DOMNodeSelector = 'body',
curtain = true,
closeCallback,
defaultActionCallback,
......@@ -38,7 +38,7 @@ export const Modal = ({
<main>{children}</main>
<footer>{buttons}</footer>
<div>
{typeof DOMNode == 'string' ? DOMNode : JSON.stringify(DOMNode)} -{' '}
{typeof DOMNodeSelector == 'string' ? DOMNodeSelector : JSON.stringify(DOMNodeSelector)} -{' '}
{curtain ? 'curtain' : ''}
</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