mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
Refine country code select styling.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
f8b95d5a08
commit
93bb13f51f
@ -1,13 +1,13 @@
|
||||
"use client";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
import { DesignInput } from "@/components/design-components";
|
||||
import {
|
||||
FormControl,
|
||||
FormField,
|
||||
FormItem,
|
||||
FormMessage,
|
||||
Input,
|
||||
} from "@/components/ui";
|
||||
import { cn } from "@/lib/utils";
|
||||
import { FieldLabel } from "@/components/form-fields";
|
||||
import { useEffect, useState } from "react";
|
||||
import { Control, FieldValues, Path } from "react-hook-form";
|
||||
@ -34,7 +34,7 @@ export function CountryCodeInput({
|
||||
}, [value]);
|
||||
|
||||
return (
|
||||
<Input
|
||||
<DesignInput
|
||||
value={draftValue}
|
||||
onChange={(e) => {
|
||||
const val = e.target.value.toUpperCase().replace(/[^A-Z]/g, "").slice(0, 2);
|
||||
@ -44,6 +44,7 @@ export function CountryCodeInput({
|
||||
placeholder={placeholder}
|
||||
disabled={disabled}
|
||||
maxLength={2}
|
||||
size="sm"
|
||||
className={cn("font-mono", className)}
|
||||
/>
|
||||
);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user