Skip to content

Commit

Permalink
simplify code to change ticker background color
Browse files Browse the repository at this point in the history
  • Loading branch information
emilydrakesmith committed Dec 27, 2024
1 parent ca34de8 commit 3113a24
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions src/components/Futa/SearchableTicker/TickerItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -195,16 +195,12 @@ export default function TickerItem(props: PropsIF) {
styles.ticker_item,
// add background highlighting when ticker is active
// ... or when hovered
!isAccount
? // ? (auction?.ticker === selectedTicker
// ? styles.active : styles.inactive
// )
styles[
auction?.ticker === selectedTicker
? 'active'
: 'inactive'
]
: '',
isAccount ||
styles[
auction?.ticker === selectedTicker
? 'active'
: 'inactive'
],
].join(' ')}
to={'/auctions/v1/' + ticker}
onClick={() => {
Expand Down

0 comments on commit 3113a24

Please sign in to comment.