Skip to content

Commit

Permalink
Pretified component html code
Browse files Browse the repository at this point in the history
  • Loading branch information
EstDavid committed Oct 6, 2022
1 parent 6fa16ea commit ea37fee
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions client/src/components/PriceChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,20 +144,17 @@ const PriceChart = () => {
<TimeframeSelector />
<div className="card my-2">
<div onWheel={handleScroll}>
<Chart style={showCTRLMouseWheel ? {opacity: "0.2"} : {} }
<Chart style={showCTRLMouseWheel ? { opacity: "0.2" } : {}}
options={priceChart.options}
series={priceChart.series}
/>
{showCTRLMouseWheel ?
<div className="ctrl-mousewheel-text card-img-overlay">
<div>Press CTRL key + mouse wheel to scroll the chart left and right</div>
</div>
{showCTRLMouseWheel ?
<div className="ctrl-mousewheel-text card-img-overlay">
<div>Press CTRL key + mouse wheel to scroll the chart left and right</div>
</div>
: ''}

</div>

</div>
</div>

</div>
);
}
Expand Down

0 comments on commit ea37fee

Please sign in to comment.