Skip to content

Commit 4ced742

Browse files
committed
use twFlipForRtl for rtl support
1 parent afa689e commit 4ced742

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/CardList.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const Card = ({
3636
imageWidth = 20,
3737
...props
3838
}: CardProps) => {
39-
const { flipForRtl } = useRtlFlip()
39+
const { twFlipForRtl } = useRtlFlip()
4040
const isLink = !!link
4141
const isExternal = url.isExternal(link || "")
4242

@@ -70,7 +70,7 @@ const Card = ({
7070
<div className="mb-0 text-sm opacity-60">{caption}</div>
7171
</div>
7272
)}
73-
{isExternal && <span style={{ transform: flipForRtl }}></span>}
73+
{isExternal && <span className={twFlipForRtl}></span>}
7474
</div>
7575
)
7676
}

0 commit comments

Comments
 (0)