File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
app/[locale]/roadmap/_components Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 1
1
"use client"
2
2
3
+ // TODO: Extract intl strings
4
+ // TODO: Fix RTL compatibility; currenly forced to LTR flow
5
+
3
6
import { useEffect , useState } from "react"
4
7
5
8
import { Image } from "@/components/Image"
@@ -73,7 +76,7 @@ const ReleaseCarousel = () => {
73
76
} , [ api1 , api2 ] )
74
77
75
78
return (
76
- < div className = "w-full max-w-[100vw] overflow-hidden" >
79
+ < div className = "w-full max-w-[100vw] overflow-hidden" dir = "ltr" >
77
80
< div className = "mx-auto w-full max-w-screen-2xl px-4 sm:px-6" >
78
81
< div className = "w-full rounded-2xl bg-background-highlight py-6" >
79
82
< div className = "flex flex-col gap-6" >
@@ -84,6 +87,7 @@ const ReleaseCarousel = () => {
84
87
opts = { {
85
88
align : "center" ,
86
89
containScroll : false ,
90
+ direction : "ltr" ,
87
91
loop : false ,
88
92
startIndex : findLatestReleaseIndex ( ) ,
89
93
} }
@@ -202,6 +206,7 @@ const ReleaseCarousel = () => {
202
206
opts = { {
203
207
align : "center" ,
204
208
containScroll : false ,
209
+ direction : "ltr" ,
205
210
loop : false ,
206
211
startIndex : findLatestReleaseIndex ( ) ,
207
212
} }
Original file line number Diff line number Diff line change
1
+ // TODO: Fix RTL compatibility
2
+
1
3
import * as React from "react"
2
4
import useEmblaCarousel , {
3
5
type UseEmblaCarouselType ,
4
6
} from "embla-carousel-react"
7
+ import { MdChevronLeft , MdChevronRight } from "react-icons/md"
5
8
6
- import { ChevronNext , ChevronPrev } from "@/components/Chevron"
7
9
import { Button } from "@/components/ui/buttons/Button"
8
10
9
11
import { cn } from "@/lib/utils/cn"
@@ -215,7 +217,7 @@ const CarouselPrevious = React.forwardRef<
215
217
onClick = { scrollPrev }
216
218
{ ...props }
217
219
>
218
- < ChevronPrev className = "h-8 w-8" />
220
+ < MdChevronLeft className = "h-8 w-8" />
219
221
< span className = "sr-only" > Previous slide</ span >
220
222
</ Button >
221
223
)
@@ -244,7 +246,7 @@ const CarouselNext = React.forwardRef<
244
246
onClick = { scrollNext }
245
247
{ ...props }
246
248
>
247
- < ChevronNext className = "h-8 w-8" />
249
+ < MdChevronRight className = "h-8 w-8" />
248
250
< span className = "sr-only" > Next slide</ span >
249
251
</ Button >
250
252
)
You can’t perform that action at this time.
0 commit comments