Page MenuHomePhabricator

D8337.diff
No OneTemporary

D8337.diff

diff --git a/web/modals/threads/members/change-member-role-modal.react.js b/web/modals/threads/members/change-member-role-modal.react.js
--- a/web/modals/threads/members/change-member-role-modal.react.js
+++ b/web/modals/threads/members/change-member-role-modal.react.js
@@ -54,7 +54,7 @@
const [selectedRole, setSelectedRole] = React.useState(initialSelectedRole);
- const onBackClick = React.useCallback(() => {
+ const onCloseModal = React.useCallback(() => {
if (selectedRole === initialSelectedRole) {
popModal();
return;
@@ -118,7 +118,7 @@
]);
return (
- <Modal name="Change Role" onClose={popModal} size="large">
+ <Modal name="Change Role" onClose={onCloseModal} size="large">
<div className={css.roleModalDescription}>
Members can only be assigned to one role at a time. Changing a
member&rsquo;s role will replace their previously assigned role.
@@ -142,7 +142,7 @@
<Button
variant="outline"
className={css.roleModalBackButton}
- onClick={onBackClick}
+ onClick={onCloseModal}
>
Back
</Button>

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 27, 1:37 PM (22 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2585191
Default Alt Text
D8337.diff (1 KB)

Event Timeline