Socket
Socket
Sign inDemoInstall

react-textfield-validator

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-textfield-validator - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

icons/ErrorIcon.js

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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc