fix React warnings

This commit is contained in:
Philip Schatz 2016-10-28 04:30:01 -05:00
parent 94c043d3fc
commit a39b24c061
7 changed files with 5 additions and 8 deletions

View File

@ -11,7 +11,6 @@ import AppNav from './nav';
import Footer from './footer';
const App = React.createClass({
mixins: [History],
componentDidMount() {
SettingsStore.on('change:tableLayout', this.onChange);
this._historyListener = history.listen(this.storeHistory);

View File

@ -31,7 +31,6 @@ const AddFilterModal = React.createClass({
});
const SavedFiltersButton = React.createClass({
mixins: [History],
getInitialState() {
return {showModal: false};
},

View File

@ -54,7 +54,7 @@ const KanbanColumn = React.createClass({
if (isShowingColumn) {
return (
<BS.Col key={milestone && milestone.title || 'no-milestone'} xl={2} lg={3} md={4} sm={6} xs={12} className='kanban-board-column'>
<BS.Col key={milestone && milestone.title || 'no-milestone'} lg={3} md={4} sm={6} xs={12} className='kanban-board-column'>
<IssueList
title={heading}
milestone={milestone}

View File

@ -37,7 +37,7 @@ const KanbanColumn = React.createClass({
);
return (
<BS.Col key={login} xl={2} lg={3} md={4} sm={6} xs={12} className='kanban-board-column'>
<BS.Col key={login} lg={3} md={4} sm={6} xs={12} className='kanban-board-column'>
<IssueList title={heading}>
{issueComponents}
</IssueList>
@ -73,6 +73,7 @@ const MilestonesView = React.createClass({
/*HACK: Column should handle milestones */
return (
<KanbanColumn
key={kanbanColumnCount}
login={login}
cards={columnCards}
primaryRepoName={repoName}

View File

@ -113,7 +113,6 @@ const RepoItem = React.createClass({
});
const RepoGroup = React.createClass({
mixins: [History],
getInitialState() {
return {selectedRepos: {}};
},
@ -242,7 +241,6 @@ const Dashboard = React.createClass({
});
const CustomRepoModal = React.createClass({
mixins: [History],
getInitialState() {
return {customRepoName: null};
},

View File

@ -41,7 +41,7 @@ const LabelBadge = React.createClass({
return (
<Link to={getFilters().toggleTagName(label.name).url()}
key={name}
{...this.props}
onClick={onClick}
className={className}
style={{backgroundColor: '#' + label.color}}>
{icon}

View File

@ -64,7 +64,7 @@ const KanbanColumn = React.createClass({
if (issueComponents.length || SettingsStore.getShowEmptyColumns()) {
return (
<BS.Col key={label.name} xl={2} lg={3} md={4} sm={6} xs={12} className='kanban-board-column'>
<BS.Col key={label.name} lg={3} md={4} sm={6} xs={12} className='kanban-board-column'>
<IssueList
icon={icon}
title={title}