Skip to content

Commit

Permalink
type fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
amalcaraz committed Oct 19, 2023
1 parent 3f9f012 commit 3135f74
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/common/ScoreCell/styles.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import styled from 'styled-components'
import ColorDot from '../ColorDot'

export const StyledScoreIcon = styled(ColorDot).attrs<{ $score: number }>(
export type StyledScoreIconProps = { $score: number }

export const StyledScoreIcon = styled(ColorDot).attrs<StyledScoreIconProps>(
({ $score, ...rest }) => {
const $color = $score >= 0.8 ? 'main1' : $score >= 0.5 ? 'main0' : 'error'

Expand All @@ -10,4 +12,4 @@ export const StyledScoreIcon = styled(ColorDot).attrs<{ $score: number }>(
...rest,
}
},
)``
)<StyledScoreIconProps>``

0 comments on commit 3135f74

Please sign in to comment.