Skip to content

Commit

Permalink
refactor: use tsFlipForRtl
Browse files Browse the repository at this point in the history
flipForRtl deprecated
  • Loading branch information
wackerow committed Feb 26, 2025
1 parent 741b273 commit b8ce23b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/components/DocsNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ type CardLinkProps = {

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

return (
<BaseLink
Expand All @@ -59,8 +59,11 @@ const CardLink = ({ docData, isPrev, contentNotTranslated }: CardLinkProps) => {
}}
>
<div
className={cn("p-4", isPrev ? "order-0" : "order-1")}
style={{ transform: contentNotTranslated ? undefined : flipForRtl }}
className={cn(
"p-4",
isPrev ? "order-0" : "order-1",
!contentNotTranslated && twFlipForRtl
)}
>
{isPrev ? (
<FaChevronLeft className="text-xl group-hover:fill-primary-hover" />
Expand Down

0 comments on commit b8ce23b

Please sign in to comment.