Extracted PhoneInput, fixed styling (#520)
This commit is contained in:
1 parent
9844cf92a8
commit
160727c0e2
3 files changed
+43
-24
No files matched your search
@@ -0,0 +1,19 @@
|
||||
import "react-phone-number-input/style.css";
|
||||
import { default as BasePhoneInput } from "react-phone-number-input";
|
||||
import React from "react";
|
||||
import classNames from "@lib/classNames";
|
||||
|
||||
export const PhoneInput = (props) => (
|
||||
<BasePhoneInput
|
||||
{...props}
|
||||
className={classNames(
|
||||
"shadow-sm rounded-md block w-full py-px px-3 border border-1 border-gray-300 ring-black focus-within:ring-1 focus-within:border-black dark:border-gray-900 dark:text-white dark:bg-black",
|
||||
props.className
|
||||
)}
|
||||
onChange={() => {
|
||||
/* DO NOT REMOVE: Callback required by PhoneInput, comment added to satisfy eslint:no-empty-function */
|
||||
}}
|
||||
/>
|
||||
);
|
||||
|
||||
export default PhoneInput;
|
||||
Reference in new issue
Block a user