Skip to content

Commit b8ce23b

Browse files
committed
refactor: use tsFlipForRtl
flipForRtl deprecated
1 parent 741b273 commit b8ce23b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/components/DocsNav.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ type CardLinkProps = {
3939

4040
const CardLink = ({ docData, isPrev, contentNotTranslated }: CardLinkProps) => {
4141
const { t } = useTranslation("page-developers-docs")
42-
const { flipForRtl } = useRtlFlip()
42+
const { twFlipForRtl } = useRtlFlip()
4343

4444
return (
4545
<BaseLink
@@ -59,8 +59,11 @@ const CardLink = ({ docData, isPrev, contentNotTranslated }: CardLinkProps) => {
5959
}}
6060
>
6161
<div
62-
className={cn("p-4", isPrev ? "order-0" : "order-1")}
63-
style={{ transform: contentNotTranslated ? undefined : flipForRtl }}
62+
className={cn(
63+
"p-4",
64+
isPrev ? "order-0" : "order-1",
65+
!contentNotTranslated && twFlipForRtl
66+
)}
6467
>
6568
{isPrev ? (
6669
<FaChevronLeft className="text-xl group-hover:fill-primary-hover" />

0 commit comments

Comments
 (0)