Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3182117
D3613.id11080.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D3613.id11080.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D3613: [web] [refactor] [ENG-716] destructure props in confirm-leave-thread-modal
Attached
Detach File
Event Timeline
Log In to Comment