Page MenuHomePhabricator

D3613.id11080.diff
No OneTemporary

D3613.id11080.diff

diff --git a/web/modals/threads/confirm-leave-thread-modal.react.js b/web/modals/threads/confirm-leave-thread-modal.react.js
--- a/web/modals/threads/confirm-leave-thread-modal.react.js
+++ b/web/modals/threads/confirm-leave-thread-modal.react.js
@@ -14,16 +14,19 @@
+onConfirm: () => void,
};
function ConfirmLeaveThreadModal(props: Props): React.Node {
+ const { threadInfo, onClose, onConfirm } = props;
+ const { uiName } = threadInfo;
+
return (
- <Modal name="Confirm leave thread" onClose={props.onClose}>
+ <Modal name="Confirm leave thread" onClose={onClose}>
<div className={css['modal-body']}>
<p>
{'Are you sure you want to leave "'}
- <span className={css['thread-name']}>{props.threadInfo.uiName}</span>
+ <span className={css['thread-name']}>{uiName}</span>
{'"?'}
</p>
<div className={css['form-footer']}>
- <Button onClick={props.onConfirm} type="submit">
+ <Button onClick={onConfirm} type="submit">
Leave Thread
</Button>
</div>

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 9, 7:31 AM (20 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2450121
Default Alt Text
D3613.id11080.diff (1 KB)

Event Timeline