Continuing updating the reformatting of propTypes and set redux, intl functions to end of component
• Removing: - the reformatting of propTypes and set redux, intl functions to end of component
This commit is contained in:
@@ -7,21 +7,8 @@ import SidebarSectionItem from './sidebar_section_item'
|
||||
import Heading from './heading'
|
||||
import LinkFooter from './link_footer'
|
||||
|
||||
const messages = defineMessages({
|
||||
explore: { id: 'explore', defaultMessage: 'Explore' },
|
||||
menu: { id: 'menu', defaultMessage: 'Menu' },
|
||||
})
|
||||
|
||||
export default
|
||||
@injectIntl
|
||||
class Sidebar extends React.PureComponent {
|
||||
|
||||
static propTypes = {
|
||||
intl: PropTypes.object.isRequired,
|
||||
showLinkFooter: PropTypes.bool,
|
||||
title: PropTypes.string,
|
||||
}
|
||||
|
||||
render() {
|
||||
const {
|
||||
intl,
|
||||
@@ -121,4 +108,17 @@ class Sidebar extends React.PureComponent {
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
const messages = defineMessages({
|
||||
explore: { id: 'explore', defaultMessage: 'Explore' },
|
||||
menu: { id: 'menu', defaultMessage: 'Menu' },
|
||||
})
|
||||
|
||||
Sidebar.propTypes = {
|
||||
intl: PropTypes.object.isRequired,
|
||||
showLinkFooter: PropTypes.bool,
|
||||
title: PropTypes.string,
|
||||
}
|
||||
|
||||
export default injectIntl(Sidebar)
|
||||
Reference in New Issue
Block a user