Skip to content

Commit

Permalink
Merge pull request #496 from mithraiclabs/fix/last-price-column
Browse files Browse the repository at this point in the history
[Fix] Add last price state to selector
  • Loading branch information
danmatuszak authored Aug 13, 2021
2 parents 812e688 + 189f625 commit e5848a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/pages/Markets/ColumnDisplaySelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export const ColumnDisplaySelector: React.FC<{
showPriceChange: boolean
showVolume: boolean
showOI: boolean
showLastPrice: boolean
setShowIV: React.Dispatch<React.SetStateAction<boolean>>
setShowPriceChange: React.Dispatch<React.SetStateAction<boolean>>
setShowVolume: React.Dispatch<React.SetStateAction<boolean>>
Expand All @@ -33,6 +34,7 @@ export const ColumnDisplaySelector: React.FC<{
showPriceChange,
showVolume,
showOI,
showLastPrice,
setShowIV,
setShowPriceChange,
setShowVolume,
Expand Down Expand Up @@ -150,7 +152,7 @@ export const ColumnDisplaySelector: React.FC<{
<FormControlLabel
control={
<Checkbox
checked={showOI}
checked={showLastPrice}
onChange={(e) => {
setShowLastPrice(e.target.checked)
if (e.target.checked) {
Expand Down
1 change: 1 addition & 0 deletions src/components/pages/Markets/MarketsTableHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export const MarketsTableHeader: React.FC<{
showPriceChange={showPriceChange}
showVolume={showVolume}
showOI={showOI}
showLastPrice={showLastPrice}
setShowIV={setShowIV}
setShowPriceChange={setShowPriceChange}
setShowVolume={setShowVolume}
Expand Down

0 comments on commit e5848a5

Please sign in to comment.