Skip to content

Commit d9a33ee

Browse files
committed
changed languagefooter
1 parent 3561a7b commit d9a33ee

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

src/components/LanguagePicker/index.tsx

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import { useParams } from "next/navigation"
22

3+
import { ButtonLink } from "@/components/ui/buttons/Button"
4+
35
import { cn } from "@/lib/utils/cn"
46

57
import {
@@ -10,7 +12,6 @@ import {
1012
CommandList,
1113
} from "../ui/command"
1214
import { Dialog, DialogContent, DialogTrigger } from "../ui/dialog"
13-
import { BaseLink } from "../ui/Link"
1415
import { Popover, PopoverContent, PopoverTrigger } from "../ui/popover"
1516

1617
import MenuItem from "./MenuItem"
@@ -188,16 +189,23 @@ const LanguagePickerFooter = ({ onTranslationProgramClick }) => {
188189

189190
return (
190191
<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}
197205
>
198-
{t("common:learn-more")}
199-
</BaseLink>
200-
</p>
206+
{t("get-involved")}
207+
</ButtonLink>
208+
</div>
201209
</div>
202210
)
203211
}

0 commit comments

Comments
 (0)