diff --git a/packages/ui/package.json b/packages/ui/package.json index 139e48249..e241b6444 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -62,7 +62,6 @@ "react-dom": "^18.0.0", "react-i18next": "^11.18.3", "react-modal": "^3.15.1", - "react-modal-promise": "^1.0.2", "react-router-dom": "^6.2.2", "react-string-replace": "^1.0.0", "react-timer-hook": "^3.0.5", diff --git a/packages/ui/src/components/ConfirmModal/IframeConfirmModal.module.scss b/packages/ui/src/components/ConfirmModal/IframeConfirmModal.module.scss deleted file mode 100644 index 8a1072fa0..000000000 --- a/packages/ui/src/components/ConfirmModal/IframeConfirmModal.module.scss +++ /dev/null @@ -1,51 +0,0 @@ -@use '@/scss/underscore' as _; - -.overlay { - z-index: 100; -} - -.modal { - position: absolute; - left: 20px; - right: 20px; - top: 40px; - bottom: 40px; - outline: none; -} - -.container { - background: var(--color-dialogue); - border-radius: 12px; - width: 100%; - height: 100%; - @include _.flex_column(stretch, center); -} - -.content { - padding: _.unit(5); - flex: 1; - @include _.flex_column; -} - -iframe { - display: block; - - &.hidden { - display: none; - } -} - - -.footer { - border-top: 1px solid var(--color-divider); - @include _.flex_row; - padding: _.unit(5); - - > * { - flex: 1; - } - - > button:first-child { - margin-right: _.unit(2); - } -} diff --git a/packages/ui/src/components/ConfirmModal/IframeConfirmModal.tsx b/packages/ui/src/components/ConfirmModal/IframeConfirmModal.tsx deleted file mode 100644 index 22ad550cc..000000000 --- a/packages/ui/src/components/ConfirmModal/IframeConfirmModal.tsx +++ /dev/null @@ -1,63 +0,0 @@ -import classNames from 'classnames'; -import { useState } from 'react'; -import ReactModal from 'react-modal'; - -import Button from '@/components/Button'; -import { LoadingIcon } from '@/components/LoadingLayer'; - -import * as modalStyles from '../../scss/modal.module.scss'; -import * as styles from './IframeConfirmModal.module.scss'; -import { ModalProps } from './type'; - -type Props = { url: string } & Omit; - -const IframeConfirmModal = ({ - className, - isOpen = false, - url, - cancelText = 'action.cancel', - confirmText = 'action.confirm', - onConfirm, - onClose, -}: Props) => { - const [isLoading, setIsLoading] = useState(true); - - return ( - -
-
- {isLoading && } -