fix: address input (#8349)
Signed-off-by: Udit Takkar <[email protected]>
This commit is contained in:
1 parent
b28d60b6dc
commit
a76a4996b4
1 file changed
+4
-4
@@ -1,3 +1,4 @@
|
|||||||
|
import { Input } from "../components/form/inputs/Input";
|
||||||
import { MapPin } from "../components/icon";
|
import { MapPin } from "../components/icon";
|
||||||
|
|
||||||
export type AddressInputProps = {
|
export type AddressInputProps = {
|
||||||
@@ -12,15 +13,14 @@ export type AddressInputProps = {
|
|||||||
function AddressInput({ className = "", value, onChange, ...rest }: AddressInputProps) {
|
function AddressInput({ className = "", value, onChange, ...rest }: AddressInputProps) {
|
||||||
return (
|
return (
|
||||||
<div className="relative ">
|
<div className="relative ">
|
||||||
<MapPin color="#D2D2D2" className="absolute top-1/2 left-0.5 ml-3 h-6 -translate-y-1/2" />
|
<MapPin className="text-emphasis absolute top-1/2 left-0.5 ml-3 h-4 -translate-y-1/2" />
|
||||||
<input
|
<Input
|
||||||
{...rest}
|
{...rest}
|
||||||
value={value}
|
value={value}
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
onChange(e.target.value);
|
onChange(e.target.value);
|
||||||
}}
|
}}
|
||||||
color="#D2D2D2"
|
className={`${className} py-px pl-10`}
|
||||||
className={`${className} focus-within:border-brand-default dark:bg-darkgray-100 border-subtle border-default disabled:text-subtle disabled:dark:text-subtle dark:text-inverted block h-10 w-full rounded-md border border py-px pl-10 text-sm outline-none ring-black focus-within:ring-1 disabled:opacity-50 dark:placeholder-gray-500 dark:selection:bg-green-500`}
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in new issue
Block a user