Beginning to reformat propTypes and set redux, intl functions to end of component files
• Beginning: - to reformat propTypes and set redux, intl functions to end of component files
This commit is contained in:
@@ -17,11 +17,7 @@ import {
|
||||
SidebarXS,
|
||||
} from '../features/ui/util/async_components'
|
||||
|
||||
export default class SettingsLayout extends React.PureComponent {
|
||||
|
||||
static propTypes = {
|
||||
title: PropTypes.string,
|
||||
}
|
||||
class SettingsLayout extends React.PureComponent {
|
||||
|
||||
componentWillMount() {
|
||||
this.menuItems = [
|
||||
@@ -135,3 +131,9 @@ export default class SettingsLayout extends React.PureComponent {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
SettingsLayout.propTypes = {
|
||||
title: PropTypes.string,
|
||||
}
|
||||
|
||||
export default SettingsLayout
|
||||
@@ -16,17 +16,7 @@ import {
|
||||
TrendsPanel,
|
||||
} from '../features/ui/util/async_components'
|
||||
|
||||
export default class ExploreLayout extends ImmutablePureComponent {
|
||||
|
||||
static propTypes = {
|
||||
actions: PropTypes.array,
|
||||
children: PropTypes.node,
|
||||
group: ImmutablePropTypes.map,
|
||||
groupId: PropTypes.string,
|
||||
layout: PropTypes.object,
|
||||
relationships: ImmutablePropTypes.map,
|
||||
title: PropTypes.string,
|
||||
}
|
||||
class ExploreLayout extends ImmutablePureComponent {
|
||||
|
||||
state = {
|
||||
lazyLoaded: false,
|
||||
@@ -125,4 +115,16 @@ export default class ExploreLayout extends ImmutablePureComponent {
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
ExploreLayout.propTypes = {
|
||||
actions: PropTypes.array,
|
||||
children: PropTypes.node,
|
||||
group: ImmutablePropTypes.map,
|
||||
groupId: PropTypes.string,
|
||||
layout: PropTypes.object,
|
||||
relationships: ImmutablePropTypes.map,
|
||||
title: PropTypes.string,
|
||||
}
|
||||
|
||||
export default ExploreLayout
|
||||
@@ -23,15 +23,7 @@ import {
|
||||
SignUpPanel,
|
||||
} from '../features/ui/util/async_components'
|
||||
|
||||
export default class ProfileLayout extends ImmutablePureComponent {
|
||||
|
||||
static propTypes = {
|
||||
account: ImmutablePropTypes.map,
|
||||
children: PropTypes.node.isRequired,
|
||||
titleHTML: PropTypes.string,
|
||||
unavailable: PropTypes.bool,
|
||||
noSidebar: PropTypes.bool,
|
||||
}
|
||||
class ProfileLayout extends ImmutablePureComponent {
|
||||
|
||||
render() {
|
||||
const {
|
||||
@@ -152,4 +144,14 @@ export default class ProfileLayout extends ImmutablePureComponent {
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
ProfileLayout.propTypes = {
|
||||
account: ImmutablePropTypes.map,
|
||||
children: PropTypes.node.isRequired,
|
||||
titleHTML: PropTypes.string,
|
||||
unavailable: PropTypes.bool,
|
||||
noSidebar: PropTypes.bool,
|
||||
}
|
||||
|
||||
export default ProfileLayout
|
||||
@@ -15,11 +15,7 @@ import {
|
||||
SidebarXS,
|
||||
} from '../features/ui/util/async_components'
|
||||
|
||||
export default class SettingsLayout extends React.PureComponent {
|
||||
|
||||
static propTypes = {
|
||||
title: PropTypes.string,
|
||||
}
|
||||
class SettingsLayout extends React.PureComponent {
|
||||
|
||||
render() {
|
||||
const { children, title } = this.props
|
||||
@@ -85,3 +81,9 @@ export default class SettingsLayout extends React.PureComponent {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
SettingsLayout.propTypes = {
|
||||
title: PropTypes.string,
|
||||
}
|
||||
|
||||
export default SettingsLayout
|
||||
Reference in New Issue
Block a user