diff --git a/src/app/molecules/dialog/Dialog.jsx b/src/app/molecules/dialog/Dialog.jsx new file mode 100644 index 0000000..a039f35 --- /dev/null +++ b/src/app/molecules/dialog/Dialog.jsx @@ -0,0 +1,57 @@ +import React from 'react'; +import PropTypes from 'prop-types'; +import './Dialog.scss'; + +import Text from '../../atoms/text/Text'; +import Header, { TitleWrapper } from '../../atoms/header/Header'; +import ScrollView from '../../atoms/scroll/ScrollView'; +import RawModal from '../../atoms/modal/RawModal'; + +function Dialog({ + className, isOpen, title, + contentOptions, onRequestClose, children, +}) { + return ( + +
+
+
+ + {title} + + {contentOptions} +
+
+ +
+ {children} +
+
+
+
+
+
+ ); +} + +Dialog.defaultProps = { + className: null, + contentOptions: null, + onRequestClose: null, +}; + +Dialog.propTypes = { + className: PropTypes.string, + isOpen: PropTypes.bool.isRequired, + title: PropTypes.string.isRequired, + contentOptions: PropTypes.node, + onRequestClose: PropTypes.func, + children: PropTypes.node.isRequired, +}; + +export default Dialog; diff --git a/src/app/molecules/dialog/Dialog.scss b/src/app/molecules/dialog/Dialog.scss new file mode 100644 index 0000000..30f877d --- /dev/null +++ b/src/app/molecules/dialog/Dialog.scss @@ -0,0 +1,28 @@ +.dialog-model { + --modal-height: 656px; + max-height: var(--modal-height) !important; +} + +.dialog { + width: 100%; + max-height: inherit; + background-color: var(--bg-surface); + display: flex; + + &__content { + flex: 1; + min-width: 0; + display: flex; + flex-direction: column; + } +} + + +.dialog__content-container { + padding-top: var(--sp-extra-tight); + padding-bottom: var(--sp-extra-loose); +} +.dialog__content__wrapper { + flex: 1; + min-height: 0; +} \ No newline at end of file diff --git a/src/app/organisms/pw/Dialogs.jsx b/src/app/organisms/pw/Dialogs.jsx new file mode 100644 index 0000000..d878ed9 --- /dev/null +++ b/src/app/organisms/pw/Dialogs.jsx @@ -0,0 +1,13 @@ +import React from 'react'; + +import ReadReceipts from '../read-receipts/ReadReceipts'; + +function Dialogs() { + return ( + <> + + + ); +} + +export default Dialogs;