Skip to content

Commit f777793

Browse files
committed
chore: Formatting
1 parent 3d85832 commit f777793

File tree

3 files changed

+15
-13
lines changed

3 files changed

+15
-13
lines changed

examples/shadcn/src/components/phone-auth-form.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import {
2222
type PhoneAuthVerifyFormSchema,
2323
} from "@invertase/firebaseui-core";
2424

25-
import { Form, FormControl, FormField, FormItem, FormLabel, FormMessage } from "@/components/ui/form";
25+
import { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from "@/components/ui/form";
2626
import { Input } from "@/components/ui/input";
2727
import { Button } from "@/components/ui/button";
2828
import { Policies } from "@/components/policies";
@@ -66,6 +66,7 @@ function VerifyPhoneNumberForm(props: VerifyPhoneNumberFormProps) {
6666
render={({ field }) => (
6767
<FormItem>
6868
<FormLabel>{getTranslation(ui, "labels", "verificationCode")}</FormLabel>
69+
<FormDescription>{getTranslation(ui, "prompts", "smsVerificationPrompt")}</FormDescription>
6970
<FormControl>
7071
<InputOTP maxLength={6} {...field}>
7172
<InputOTPGroup>

packages/shadcn/src/components/phone-auth-form.test.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ vi.mock("@invertase/firebaseui-core", async (importOriginal) => {
4141
if (category === "labels" && key === "phoneNumber") return "Phone Number";
4242
if (category === "labels" && key === "verificationCode") return "Verification Code";
4343
if (category === "labels" && key === "verifyCode") return "Verify Code";
44-
if (category === "prompts" && key === "smsVerificationPrompt") return "Enter the verification code sent to your phone number";
44+
if (category === "prompts" && key === "smsVerificationPrompt")
45+
return "Enter the verification code sent to your phone number";
4546
if (category === "errors" && key === "invalidPhoneNumber") return "Error: Invalid phone number format";
4647
if (category === "errors" && key === "missingPhoneNumber") return "Phone number is required";
4748
return key;

pnpm-lock.yaml

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)