Lint all the things
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import React from "react";
|
||||
import { SliderPicker } from "react-color";
|
||||
//To be used as a form element only.
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { InputNumber } from "antd";
|
||||
import React, { forwardRef } from "react";
|
||||
import { forwardRef } from "react";
|
||||
|
||||
// const locale = "en-us";
|
||||
// const currencyFormatter = (value) => {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { MailFilled } from "@ant-design/icons";
|
||||
import { Input } from "antd";
|
||||
import React, { forwardRef } from "react";
|
||||
import { forwardRef } from "react";
|
||||
|
||||
function FormItemEmail(props, ref) {
|
||||
return (
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { Input } from "antd";
|
||||
import i18n from "i18next";
|
||||
import parsePhoneNumber from "libphonenumber-js";
|
||||
import React, { forwardRef } from "react";
|
||||
import { forwardRef } from "react";
|
||||
import "./phone-form-item.styles.scss";
|
||||
|
||||
function FormItemPhone(props, ref) {
|
||||
function FormItemPhone(props) {
|
||||
return (
|
||||
<Input
|
||||
// country="ca" ref={ref} className="ant-input"
|
||||
@@ -15,7 +15,7 @@ function FormItemPhone(props, ref) {
|
||||
|
||||
export default forwardRef(FormItemPhone);
|
||||
|
||||
export const PhoneItemFormatterValidation = (getFieldValue, name) => ({
|
||||
export const PhoneItemFormatterValidation = () => ({
|
||||
async validator(rule, value) {
|
||||
if (!value) {
|
||||
return Promise.resolve();
|
||||
|
||||
Reference in New Issue
Block a user