fix React warnings
This commit is contained in:
parent
94c043d3fc
commit
a39b24c061
|
@ -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);
|
||||
|
|
|
@ -31,7 +31,6 @@ const AddFilterModal = React.createClass({
|
|||
});
|
||||
|
||||
const SavedFiltersButton = React.createClass({
|
||||
mixins: [History],
|
||||
getInitialState() {
|
||||
return {showModal: false};
|
||||
},
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -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};
|
||||
},
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue