Home Reference Source

application/components/base-view.js

import React from 'react';
import PropTypes from 'prop-types';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import ceoTheme from './../theme';

class BaseView extends React.Component {

    getChildContext() {
        return {'muiTheme': getMuiTheme(ceoTheme ? ceoTheme : {})};
    }
}

BaseView.childContextTypes = {
    'muiTheme': PropTypes.object.isRequired,
};

export default BaseView;