i18n
CI/CD Pipeline / Build and Push PocketBase Docker Image (push) Successful in 8s
CI/CD Pipeline / i18n Catalog Check (push) Failing after 10s
CI/CD Pipeline / Build and Push App Docker Image (push) Skipped
CI/CD Pipeline / Deploy to Kubernetes (push) Skipped

This commit is contained in:
yohlo
2026-08-08 15:29:40 -07:00
parent 22c282d8fa
commit 0a7b5fa00f
178 changed files with 13099 additions and 1285 deletions
@@ -1,17 +1,19 @@
import { Button } from "@mantine/core";
import PhoneNumberInput from "@/components/phone-number-input";
import { useForm } from "@mantine/form";
import { Trans, useLingui } from "@lingui/react/macro";
import useCreateCode from "../hooks/use-create-code";
const PhonePrompt = () => {
const { t } = useLingui();
const form = useForm({
initialValues: {
number: ''
},
validate: {
number: (value) => {
if (value.length === 0) return 'Phone number is required'
if (value.length !== 10) return 'Phone number must be 10 digits'
if (value.length === 0) return t`Phone number is required`
if (value.length !== 10) return t`Phone number must be 10 digits`
}
}
})
@@ -27,11 +29,11 @@ const PhonePrompt = () => {
<form onSubmit={form.onSubmit(handleSubmit)}>
<PhoneNumberInput
id="number"
label='Enter your phone number'
label={t`Enter your phone number`}
key={form.key('number')}
{...form.getInputProps('number')}
/>
<Button type='submit' w='100%' mt='10px' variant='filled' loading={isPending}>Send Code</Button>
<Button type='submit' w='100%' mt='10px' variant='filled' loading={isPending}><Trans>Send Code</Trans></Button>
</form>
)
}