Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33321514
D3764.1768846955.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D3764.1768846955.diff
View Options
diff --git a/web/modals/threads/thread-settings-modal.react.js b/web/modals/threads/thread-settings-modal.react.js
--- a/web/modals/threads/thread-settings-modal.react.js
+++ b/web/modals/threads/thread-settings-modal.react.js
@@ -192,7 +192,7 @@
<Tab
name="General"
tabType="general"
- onClick={this.setTab}
+ onClick={this.props.setCurrentTabType}
selected={this.props.currentTabType === 'general'}
key="general"
/>,
@@ -213,7 +213,7 @@
<Tab
name="Privacy"
tabType="privacy"
- onClick={this.setTab}
+ onClick={this.props.setCurrentTabType}
selected={this.props.currentTabType === 'privacy'}
key="privacy"
/>,
@@ -228,7 +228,7 @@
<Tab
name="Delete"
tabType="delete"
- onClick={this.setTab}
+ onClick={this.props.setCurrentTabType}
selected={this.props.currentTabType === 'delete'}
key="delete"
/>,
@@ -253,10 +253,6 @@
);
}
- setTab = (tabType: TabType) => {
- this.props.setCurrentTabType(tabType);
- };
-
nameInputRef = (nameInput: ?HTMLInputElement) => {
this.nameInput = nameInput;
};
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 19, 6:22 PM (5 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5957671
Default Alt Text
D3764.1768846955.diff (1 KB)
Attached To
Mode
D3764: [web] Remove usage of `setTab` and replace with `setCurrentTabType`
Attached
Detach File
Event Timeline
Log In to Comment