1
1
import { useParams } from "next/navigation"
2
2
3
+ import { ButtonLink } from "@/components/ui/buttons/Button"
4
+
3
5
import { cn } from "@/lib/utils/cn"
4
6
5
7
import {
@@ -10,7 +12,6 @@ import {
10
12
CommandList ,
11
13
} from "../ui/command"
12
14
import { Dialog , DialogContent , DialogTrigger } from "../ui/dialog"
13
- import { BaseLink } from "../ui/Link"
14
15
import { Popover , PopoverContent , PopoverTrigger } from "../ui/popover"
15
16
16
17
import MenuItem from "./MenuItem"
@@ -188,16 +189,23 @@ const LanguagePickerFooter = ({ onTranslationProgramClick }) => {
188
189
189
190
return (
190
191
< div className = "sticky bottom-0 flex justify-center border-t-2 border-primary bg-primary-low-contrast p-3" >
191
- < p className = "text-center text-xs text-body" >
192
- { t ( "page-languages-recruit-community" ) } { " " }
193
- { /* TODO migrate once #13411 is merged */ }
194
- < BaseLink
195
- href = "/contributing/translation-program"
196
- onClick = { onTranslationProgramClick }
192
+ < div className = "flex w-full max-w-sm flex-col items-start px-4 sm:flex-row sm:items-center sm:justify-between" >
193
+ < div className = "flex min-w-0 flex-col items-start" >
194
+ < p className = "overflow-hidden text-ellipsis whitespace-nowrap text-sm font-bold text-body" >
195
+ Translate to _______
196
+ </ p >
197
+ < p className = "text-xs text-body" >
198
+ { t ( "page-languages-recruit-community" ) }
199
+ </ p >
200
+ </ div >
201
+ < ButtonLink
202
+ className = "w-full"
203
+ href = "/contributing/translation-program/"
204
+ customEventOptions = { onTranslationProgramClick }
197
205
>
198
- { t ( "common:learn-more " ) }
199
- </ BaseLink >
200
- </ p >
206
+ { t ( "get-involved " ) }
207
+ </ ButtonLink >
208
+ </ div >
201
209
</ div >
202
210
)
203
211
}
0 commit comments