Skip to content

Commit

Permalink
fix: update OrderedList prop name for styled component (#837)
Browse files Browse the repository at this point in the history
  • Loading branch information
virus-rpi authored Nov 29, 2024
1 parent 1bcf6bd commit 9a59da0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/legacy/markdown/custom-components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ const UnorderedList = styled.ul`
}
`;

const OrderedList = styled.ol<{ doubleDigit: boolean }>`
const OrderedList = styled.ol<{ $doubleDigit: boolean }>`
line-height: 150%;
padding-left: ${(props) => (props.doubleDigit ? '26px' : '18px')};
padding-left: ${(props) => (props.$doubleDigit ? '26px' : '18px')};
margin: 0 0 16px;
> li > p {
Expand Down Expand Up @@ -194,7 +194,7 @@ const customSatellytesComponents = {
},
ol(props) {
return (
<OrderedList doubleDigit={props.children.length > 9}>
<OrderedList $doubleDigit={props.children.length > 9}>
{props.children}
</OrderedList>
);
Expand Down

0 comments on commit 9a59da0

Please sign in to comment.