Skip to content

Commit e9e8a28

Browse files
committed
changed languageFooter
1 parent d9a33ee commit e9e8a28

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/components/LanguagePicker/index.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { useParams } from "next/navigation"
2+
import { useLocale } from "next-intl"
23

34
import { ButtonLink } from "@/components/ui/buttons/Button"
45

@@ -186,20 +187,21 @@ const LanguagePickerMenu = ({ languages, onClose, onSelect }) => {
186187

187188
const LanguagePickerFooter = ({ onTranslationProgramClick }) => {
188189
const { t } = useTranslation("common")
190+
const locale = useLocale()
189191

190192
return (
191-
<div className="sticky bottom-0 flex justify-center border-t-2 border-primary bg-primary-low-contrast p-3">
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="sticky bottom-0 flex border-t-2 border-primary bg-primary-low-contrast p-0 pb-1 pt-1">
194+
<div className="flex w-full max-w-sm items-center justify-between px-4">
193195
<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 className="overflow-hidden text-ellipsis whitespace-nowrap text-xs font-bold text-body">
197+
Translate to {t(`language-${locale}`)}
196198
</p>
197199
<p className="text-xs text-body">
198200
{t("page-languages-recruit-community")}
199201
</p>
200202
</div>
201203
<ButtonLink
202-
className="w-full"
204+
className="w-min whitespace-nowrap px-1 py-0 text-xs sm:flex-shrink-0 sm:flex-grow-0"
203205
href="/contributing/translation-program/"
204206
customEventOptions={onTranslationProgramClick}
205207
>

0 commit comments

Comments
 (0)