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:
Jonathan Fritz
2017-07-27 10:51:23 -04:00
parent 2c9215095f
commit 34b87fe88a
3 changed files with 7 additions and 7 deletions

View File

@@ -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);

View File

@@ -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);
}

View File

@@ -40,7 +40,7 @@ export default class SignupEmail extends React.Component {
this.state = this.getInviteInfo();
}
static componentDidMount() {
componentDidMount() {
trackEvent('signup', 'signup_user_01_welcome');
}