mirror of
https://github.com/Unleash/unleash.git
synced 2025-03-04 00:18:40 +01:00
fixing linting
This commit is contained in:
parent
9c568239ec
commit
3ff14117ad
@ -1,4 +1,4 @@
|
|||||||
import React, { Component } from 'react';
|
import React, { Component, PropTypes } from 'react';
|
||||||
import { Layout, Drawer, Header, Navigation, Content,
|
import { Layout, Drawer, Header, Navigation, Content,
|
||||||
Footer, FooterSection, FooterDropDownSection, FooterLinkList,
|
Footer, FooterSection, FooterDropDownSection, FooterLinkList,
|
||||||
Grid, Cell, Icon,
|
Grid, Cell, Icon,
|
||||||
@ -26,6 +26,13 @@ function replace (input, params) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export default class App extends Component {
|
export default class App extends Component {
|
||||||
|
static propTypes () {
|
||||||
|
return {
|
||||||
|
location: PropTypes.object.isRequired,
|
||||||
|
params: PropTypes.object.isRequired,
|
||||||
|
routes: PropTypes.array.isRequired,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
static contextTypes = {
|
static contextTypes = {
|
||||||
router: React.PropTypes.object,
|
router: React.PropTypes.object,
|
||||||
|
@ -1,8 +1,15 @@
|
|||||||
import React, { PureComponent } from 'react';
|
import React, { PropTypes, PureComponent } from 'react';
|
||||||
import { Grid, Cell, List, ListItem, ListItemContent } from 'react-mdl';
|
import { Grid, Cell, List, ListItem, ListItemContent } from 'react-mdl';
|
||||||
import { AppsLinkList, TogglesLinkList } from '../common';
|
import { AppsLinkList, TogglesLinkList } from '../common';
|
||||||
|
|
||||||
class ShowStrategyComponent extends PureComponent {
|
class ShowStrategyComponent extends PureComponent {
|
||||||
|
static propTypes () {
|
||||||
|
return {
|
||||||
|
toggles: PropTypes.array,
|
||||||
|
applications: PropTypes.array,
|
||||||
|
strategy: PropTypes.object.isRequired,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
renderParameters (params) {
|
renderParameters (params) {
|
||||||
if (params) {
|
if (params) {
|
||||||
|
@ -13,6 +13,9 @@ const TABS = {
|
|||||||
export default class StrategyDetails extends Component {
|
export default class StrategyDetails extends Component {
|
||||||
static propTypes () {
|
static propTypes () {
|
||||||
return {
|
return {
|
||||||
|
strategyName: PropTypes.string.isRequired,
|
||||||
|
toggles: PropTypes.array,
|
||||||
|
applications: PropTypes.array,
|
||||||
activeTab: PropTypes.string.isRequired,
|
activeTab: PropTypes.string.isRequired,
|
||||||
strategy: PropTypes.object.isRequired,
|
strategy: PropTypes.object.isRequired,
|
||||||
fetchStrategies: PropTypes.func.isRequired,
|
fetchStrategies: PropTypes.func.isRequired,
|
||||||
|
@ -6,6 +6,7 @@ class EditUserComponent extends React.Component {
|
|||||||
return {
|
return {
|
||||||
user: PropTypes.object.isRequired,
|
user: PropTypes.object.isRequired,
|
||||||
updateUserName: PropTypes.func.isRequired,
|
updateUserName: PropTypes.func.isRequired,
|
||||||
|
save: PropTypes.func.isRequired,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
import React from 'react';
|
import React, { PropTypes } from 'react';
|
||||||
import ApplicationEditComponent from '../../component/application/application-edit-container';
|
import ApplicationEditComponent from '../../component/application/application-edit-container';
|
||||||
|
|
||||||
const render = ({ params }) => <ApplicationEditComponent appName={params.name} />;
|
const render = ({ params }) => <ApplicationEditComponent appName={params.name} />;
|
||||||
|
|
||||||
|
render.propTypes = {
|
||||||
|
params: PropTypes.object.isRequired,
|
||||||
|
};
|
||||||
|
|
||||||
export default render;
|
export default render;
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
import React from 'react';
|
import React, { PropTypes } from 'react';
|
||||||
import ShowStrategy from '../../component/strategies/strategy-details-container';
|
import ShowStrategy from '../../component/strategies/strategy-details-container';
|
||||||
|
|
||||||
const render = ({ params }) => <ShowStrategy strategyName={params.strategyName} activeTab={params.activeTab} />;
|
const render = ({ params }) => <ShowStrategy strategyName={params.strategyName} activeTab={params.activeTab} />;
|
||||||
|
|
||||||
|
render.propTypes = {
|
||||||
|
params: PropTypes.object.isRequired,
|
||||||
|
};
|
||||||
|
|
||||||
export default render;
|
export default render;
|
||||||
|
Loading…
Reference in New Issue
Block a user