react-textfield-validator
Advanced tools
Comparing version 2.0.0 to 2.1.0
20
index.js
import React, { useState, useEffect, useCallback } from "react"; | ||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; | ||
import { | ||
faCheckCircle, | ||
faTimesCircle, | ||
} from "@fortawesome/free-solid-svg-icons"; | ||
import "./styles.css"; | ||
import ErrorIcon from "./icons/ErrorIcon"; | ||
import RightIcon from "./icons/RightIcon"; | ||
@@ -79,7 +77,3 @@ const initialMessages = { | ||
<span className="error-item"> | ||
<FontAwesomeIcon | ||
icon={faTimesCircle} | ||
color="red" | ||
style={{ fontSize: "30px" }} | ||
/> | ||
<ErrorIcon /> | ||
{customMessages[key]} | ||
@@ -89,7 +83,3 @@ </span> | ||
<span className="error-item"> | ||
<FontAwesomeIcon | ||
icon={faCheckCircle} | ||
color="green" | ||
style={{ fontSize: "30px" }} | ||
/> | ||
<RightIcon /> | ||
{customMessages[key]} | ||
@@ -96,0 +86,0 @@ </span> |
{ | ||
"name": "react-textfield-validator", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "Validate your inputs", | ||
@@ -13,7 +13,4 @@ "main": "index.js", | ||
"peerDependencies": { | ||
"@fortawesome/fontawesome-svg-core": "^6.4.2", | ||
"@fortawesome/free-solid-svg-icons": "^6.4.2", | ||
"@fortawesome/react-fontawesome": "^0.2.0", | ||
"react": "^18.2.0" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9275
1
6
154