File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { isLangRightToLeft } from "@/lib/utils/translations"
6
6
7
7
type UseDirection = {
8
8
flipForRtl : "scaleX(-1)" | undefined // transform (deprecated)
9
- twFlipForRtl : "-scale-x-1" | undefined // className
9
+ twFlipForRtl : "-scale-x-1" | "" // className
10
10
isRtl : boolean
11
11
direction : "ltr" | "rtl"
12
12
}
@@ -21,7 +21,7 @@ export const useRtlFlip = (): UseDirection => {
21
21
const isRtl = isLangRightToLeft ( locale as Lang )
22
22
return {
23
23
flipForRtl : isRtl ? "scaleX(-1)" : undefined , // transform (deprecated)
24
- twFlipForRtl : isRtl ? "-scale-x-1" : undefined , // className (preferred)
24
+ twFlipForRtl : isRtl ? "-scale-x-1" : "" , // className (preferred)
25
25
isRtl,
26
26
direction : isRtl ? "rtl" : "ltr" ,
27
27
}
You can’t perform that action at this time.
0 commit comments