feat(donate): remove themes from donate pages

This commit is contained in:
Mrugesh Mohapatra
2019-11-15 01:35:21 +05:30
parent ef0a801c90
commit f737b24b6f
3 changed files with 18 additions and 11 deletions

View File

@@ -81,7 +81,8 @@ const propTypes = {
pathname: PropTypes.string.isRequired,
removeFlashMessage: PropTypes.func.isRequired,
showFooter: PropTypes.bool,
theme: PropTypes.string
theme: PropTypes.string,
useTheme: PropTypes.bool
};
const mapStateToProps = createSelector(
@@ -145,13 +146,16 @@ class DefaultLayout extends Component {
isSignedIn,
removeFlashMessage,
showFooter = true,
theme = 'default'
theme = 'default',
useTheme = true
} = this.props;
return (
<Fragment>
<Helmet
bodyAttributes={{
class: `${theme === 'default' ? 'light-palette' : 'dark-palette'}`
class: useTheme
? `${theme === 'default' ? 'light-palette' : 'dark-palette'}`
: 'light-palette'
}}
meta={[
{