Skip to content

Commit 045f0ac

Browse files
authored
Fixed a ReferenceError in the example code in the TypeScript docs (#2481)
1 parent 8422e47 commit 045f0ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/typescript.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ const Component: FC<ComponentProps> = ({
176176
}) => <div className={className}>{label}</div>
177177

178178
const StyledComponent0 = styled(Component)`
179-
color: ${props => label === 'Important' ? 'red' : 'green'};
179+
color: ${props => props.label === 'Important' ? 'red' : 'green'};
180180
`
181181

182182
const StyledComponent1 = styled(Component)({

0 commit comments

Comments
 (0)