MarshallOfSound/Google-Play-Music-Desktop-Player-UNOFFICIAL-

View on GitHub
src/renderer/ui/components/settings/tabs/SettingsTabWrapper.js

Summary

Maintainability
A
0 mins
Test Coverage
import React, { Component, PropTypes } from 'react';

const settingsPanelStyle = {
  padding: 12,
};

export default class SettingsTabWrapper extends Component {
  static propTypes = {
    children: PropTypes.oneOfType([
      PropTypes.array,
      PropTypes.object,
    ]).isRequired,
  };

  render() {
    return (
      <div style={settingsPanelStyle}>
        {
          this.props.children
        }
      </div>
    );
  }
}