Finished updating the reformatting of propTypes and set redux, intl functions to end of component
• Finished: - updating the reformatting of propTypes and set redux, intl functions to end of component • Removed: - Gif implementation
This commit is contained in:
@@ -5,21 +5,7 @@ import Heading from '../heading'
|
||||
import Button from '../button'
|
||||
import Text from '../text'
|
||||
|
||||
export default class PanelLayout extends React.PureComponent {
|
||||
|
||||
static propTypes = {
|
||||
title: PropTypes.string,
|
||||
subtitle: PropTypes.string,
|
||||
children: PropTypes.node,
|
||||
headerButtonTitle: PropTypes.string,
|
||||
headerButtonAction: PropTypes.func,
|
||||
headerButtonTo: PropTypes.string,
|
||||
footerButtonTitle: PropTypes.string,
|
||||
footerButtonAction: PropTypes.func,
|
||||
footerButtonTo: PropTypes.string,
|
||||
footerButtonHref: PropTypes.string,
|
||||
noPadding: PropTypes.bool,
|
||||
}
|
||||
class PanelLayout extends React.PureComponent {
|
||||
|
||||
render() {
|
||||
const {
|
||||
@@ -106,4 +92,20 @@ export default class PanelLayout extends React.PureComponent {
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
PanelLayout.propTypes = {
|
||||
title: PropTypes.string,
|
||||
subtitle: PropTypes.string,
|
||||
children: PropTypes.node,
|
||||
headerButtonTitle: PropTypes.string,
|
||||
headerButtonAction: PropTypes.func,
|
||||
headerButtonTo: PropTypes.string,
|
||||
footerButtonTitle: PropTypes.string,
|
||||
footerButtonAction: PropTypes.func,
|
||||
footerButtonTo: PropTypes.string,
|
||||
footerButtonHref: PropTypes.string,
|
||||
noPadding: PropTypes.bool,
|
||||
}
|
||||
|
||||
export default PanelLayout
|
||||
Reference in New Issue
Block a user