Skip to content

Commit

Permalink
fix: update OrderedList prop name for styled component
Browse files Browse the repository at this point in the history
  • Loading branch information
virus-rpi committed Nov 28, 2024
1 parent b1e6063 commit 3bede1d
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 3bede1d

Please sign in to comment.