Skip to content

Commit

Permalink
fix(inventoryList): issues/403 minHeight update on perpage (#447)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdcabrera committed Oct 26, 2020
1 parent 2576854 commit 4194200
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ exports[`InventoryList Component should handle variations in data: filtered data
>
<MinHeight
autoUpdate={true}
key="headerMinHeight"
minHeight={0}
>
<CardHeader>
Expand All @@ -152,6 +153,7 @@ exports[`InventoryList Component should handle variations in data: filtered data
</MinHeight>
<MinHeight
autoUpdate={true}
key="bodyMinHeight-10"
minHeight={0}
>
<CardBody>
Expand Down Expand Up @@ -193,6 +195,7 @@ exports[`InventoryList Component should handle variations in data: filtered data
</MinHeight>
<MinHeight
autoUpdate={true}
key="footerMinHeight"
minHeight={0}
>
<CardFooter
Expand Down Expand Up @@ -221,6 +224,7 @@ exports[`InventoryList Component should handle variations in data: variable data
>
<MinHeight
autoUpdate={true}
key="headerMinHeight"
minHeight={0}
>
<CardHeader>
Expand All @@ -246,6 +250,7 @@ exports[`InventoryList Component should handle variations in data: variable data
</MinHeight>
<MinHeight
autoUpdate={true}
key="bodyMinHeight-10"
minHeight={0}
>
<CardBody>
Expand Down Expand Up @@ -290,6 +295,7 @@ exports[`InventoryList Component should handle variations in data: variable data
</MinHeight>
<MinHeight
autoUpdate={true}
key="footerMinHeight"
minHeight={0}
>
<CardFooter
Expand Down Expand Up @@ -318,6 +324,7 @@ exports[`InventoryList Component should render a non-connected component: non-co
>
<MinHeight
autoUpdate={true}
key="headerMinHeight"
minHeight={0}
>
<CardHeader>
Expand All @@ -343,6 +350,7 @@ exports[`InventoryList Component should render a non-connected component: non-co
</MinHeight>
<MinHeight
autoUpdate={true}
key="bodyMinHeight-10"
minHeight={0}
>
<CardBody>
Expand All @@ -365,6 +373,7 @@ exports[`InventoryList Component should render a non-connected component: non-co
</MinHeight>
<MinHeight
autoUpdate={true}
key="footerMinHeight"
minHeight={0}
>
<CardFooter
Expand Down
6 changes: 3 additions & 3 deletions src/components/inventoryList/inventoryList.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ class InventoryList extends React.Component {

return (
<Card className="curiosity-inventory-card">
<MinHeight>
<MinHeight key="headerMinHeight">
<CardHeader>
<CardTitle>
<Title headingLevel="h2" size="lg">
Expand All @@ -184,7 +184,7 @@ class InventoryList extends React.Component {
</CardActions>
</CardHeader>
</MinHeight>
<MinHeight>
<MinHeight key={`bodyMinHeight-${updatedPerPage}`}>
<CardBody>
<div className={(error && 'blur') || 'fadein'}>
{pending && (
Expand All @@ -202,7 +202,7 @@ class InventoryList extends React.Component {
</div>
</CardBody>
</MinHeight>
<MinHeight>
<MinHeight key="footerMinHeight">
<CardFooter className={(error && 'blur') || ''}>
<TableToolbar isFooter>
<Pagination
Expand Down

0 comments on commit 4194200

Please sign in to comment.