diff --git a/web/modals/threads/confirm-leave-thread-modal.react.js b/web/modals/threads/confirm-leave-thread-modal.react.js index 2fa4b6619..0982fb35d 100644 --- a/web/modals/threads/confirm-leave-thread-modal.react.js +++ b/web/modals/threads/confirm-leave-thread-modal.react.js @@ -1,35 +1,38 @@ // @flow import * as React from 'react'; import { type ThreadInfo } from 'lib/types/thread-types'; import Button from '../../components/button.react'; import css from '../../style.css'; import Modal from '../modal.react'; type Props = { +threadInfo: ThreadInfo, +onClose: () => void, +onConfirm: () => void, }; function ConfirmLeaveThreadModal(props: Props): React.Node { + const { threadInfo, onClose, onConfirm } = props; + const { uiName } = threadInfo; + return ( - +

{'Are you sure you want to leave "'} - {props.threadInfo.uiName} + {uiName} {'"?'}

-
); } export default ConfirmLeaveThreadModal;