// @flow

import * as React from 'react';
import classNames from 'classnames';

import { defaultProps, prefix } from './utils';

type Props = {
  className?: string,
  fluid?: boolean,
  classPrefix: string,
  componentClass: React.ElementType
};

class Grid extends React.Component<Props> {
  render() {
    const { fluid, componentClass: Component, className, classPrefix, ...props } = this.props;
    const addPrefix = prefix(classPrefix);
    const clesses = classNames(classPrefix, className, {
      [addPrefix('fluid')]: fluid
    });
    return <Component {...props} className={clesses} />;
  }
}

export default defaultProps({
  componentClass: 'div',
  classPrefix: 'grid-container'
})(Grid);

@@ -471,41 +471,16 @@
 mes(
-classPrefix, className, %7B%0A      %5B
+fluid ? 
 addP
@@ -497,22 +497,33 @@
 id')
-%5D: fluid%0A    %7D
+ : classPrefix, className
 );%0A 

Update Grid