Skip to content

Commit 3dc75df

Browse files
committed
StatsBoxGrid.tsx linting, tidying
1 parent 3a52aee commit 3dc75df

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

src/components/StatsBoxGrid.tsx

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,7 @@ const Grid = styled.div`
6262
}
6363
`
6464

65-
const Box = styled.div<{
66-
color?: string
67-
}>`
65+
const Box = styled.div`
6866
position: relative;
6967
color: ${({ theme }) => theme.colors.text};
7068
height: 20rem;
@@ -111,14 +109,12 @@ const Lines = styled.div`
111109

112110
const ButtonContainer = styled.div<{ dir?: Direction }>`
113111
position: absolute;
114-
${({ dir }) => (dir === "rtl" ? "left:" : "right:")} 20px;
112+
${({ dir }) => (dir === "rtl" ? "left" : "right")}: 20px;
115113
bottom: 20px;
116114
font-family: ${(props) => props.theme.fonts.monospace};
117115
`
118116

119-
const Button = styled.button<{
120-
color: string
121-
}>`
117+
const Button = styled.button<{ color: string }>`
122118
background: ${(props) => props.theme.colors.background};
123119
font-family: ${(props) => props.theme.fonts.monospace};
124120
font-size: 1.25rem;
@@ -134,9 +130,7 @@ const Button = styled.button<{
134130
}
135131
`
136132

137-
const ButtonToggle = styled(Button)<{
138-
active: boolean
139-
}>`
133+
const ButtonToggle = styled(Button)<{ active: boolean }>`
140134
${({ active, theme }) =>
141135
active &&
142136
`

0 commit comments

Comments
 (0)