Change shouldRenderHeader prop to shouldHideHeader

This commit is contained in:
Brandon Millman
2018-06-06 16:11:23 -07:00
parent 2b4cd8b2ec
commit 14e3f413a2
5 changed files with 13 additions and 13 deletions

View File

@@ -40,7 +40,7 @@ interface FillOrderProps {
dispatcher: Dispatcher;
lastForceTokenStateRefetch: number;
isFullWidth?: boolean;
shouldRenderHeader?: boolean;
shouldHideHeader?: boolean;
}
interface FillOrderState {
@@ -65,7 +65,7 @@ interface FillOrderState {
export class FillOrder extends React.Component<FillOrderProps, FillOrderState> {
public static defaultProps: Partial<FillOrderProps> = {
isFullWidth: false,
shouldRenderHeader: true,
shouldHideHeader: false,
};
private _isUnmounted: boolean;
constructor(props: FillOrderProps) {
@@ -106,7 +106,7 @@ export class FillOrder extends React.Component<FillOrderProps, FillOrderState> {
const rootClassName = this.props.isFullWidth ? 'clearfix' : 'lg-px4 md-px4 sm-px2';
return (
<div className={rootClassName} style={{ minHeight: 600 }}>
{this.props.shouldRenderHeader && (
{!this.props.shouldHideHeader && (
<div>
<h3>Fill an order</h3>
<Divider />