Skip to content

Commit

Permalink
fix(graphCard): fadein, pending only (#592)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdcabrera committed Mar 3, 2021
1 parent 818d341 commit 1918d74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ exports[`GraphCard Component should render a non-connected component: non-connec
>
<CardBody>
<div
className="fadein"
className=""
>
<ChartArea
chartLegend={[Function]}
Expand Down Expand Up @@ -372,7 +372,7 @@ exports[`GraphCard Component should render multiple states: fulfilled 1`] = `
>
<CardBody>
<div
className="fadein"
className=""
>
<ChartArea
chartLegend={[Function]}
Expand Down
2 changes: 1 addition & 1 deletion src/components/graphCard/graphCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ class GraphCard extends React.Component {
</MinHeight>
<MinHeight key="bodyMinHeight">
<CardBody>
<div className={(error && 'blur') || 'fadein'}>
<div className={(error && 'blur') || (pending && 'fadein') || ''}>
{pending && <Loader variant="graph" />}
{!pending && this.renderChart()}
</div>
Expand Down

0 comments on commit 1918d74

Please sign in to comment.