mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
PLT-7140: Removed all static function decorators that I previously added to jsx files. These were suggested by eslint, but can cause issues for functions that override parent functionality. still can't reproduce the errors seen on spinmint locally, so I'm guessing at this point
This commit is contained in:
@@ -48,7 +48,7 @@ export default class SearchBar extends React.Component {
|
||||
this.suggestionProviders = [new SearchChannelProvider(), new SearchUserProvider()];
|
||||
}
|
||||
|
||||
static getSearchTermStateFromStores() {
|
||||
getSearchTermStateFromStores() {
|
||||
var term = SearchStore.getSearchTerm() || '';
|
||||
return {
|
||||
searchTerm: term
|
||||
@@ -83,7 +83,7 @@ export default class SearchBar extends React.Component {
|
||||
}
|
||||
}
|
||||
|
||||
static handleClose(e) {
|
||||
handleClose(e) {
|
||||
e.preventDefault();
|
||||
|
||||
if (Utils.isMobile()) {
|
||||
@@ -110,7 +110,7 @@ export default class SearchBar extends React.Component {
|
||||
});
|
||||
}
|
||||
|
||||
static handleKeyDown() {
|
||||
handleKeyDown() {
|
||||
// This is just to prevent a JS error
|
||||
}
|
||||
|
||||
@@ -184,7 +184,7 @@ export default class SearchBar extends React.Component {
|
||||
this.search.blur();
|
||||
}
|
||||
|
||||
static searchMentions(e) {
|
||||
searchMentions(e) {
|
||||
e.preventDefault();
|
||||
const user = UserStore.getCurrentUser();
|
||||
if (SearchStore.isMentionSearch) {
|
||||
@@ -195,7 +195,7 @@ export default class SearchBar extends React.Component {
|
||||
}
|
||||
}
|
||||
|
||||
static getFlagged(e) {
|
||||
getFlagged(e) {
|
||||
e.preventDefault();
|
||||
if (SearchStore.isFlaggedPosts) {
|
||||
GlobalActions.toggleSideBarAction(false);
|
||||
|
||||
@@ -175,7 +175,7 @@ export default class SearchResults extends React.Component {
|
||||
this.setState({statuses: Object.assign({}, UserStore.getStatuses())});
|
||||
}
|
||||
|
||||
static resize() {
|
||||
resize() {
|
||||
$('#search-items-container').scrollTop(0);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ export default class SignupEmail extends React.Component {
|
||||
this.state = this.getInviteInfo();
|
||||
}
|
||||
|
||||
static componentDidMount() {
|
||||
componentDidMount() {
|
||||
trackEvent('signup', 'signup_user_01_welcome');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user