Validations added temporarily
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
import React from "react";
|
||||
"use client";
|
||||
import styles from "./styles.module.css";
|
||||
const TextField = ({ placeHolder, ...props }) => {
|
||||
const TextField = ({ placeHolder, hasError, ...props }) => {
|
||||
return (
|
||||
<input
|
||||
className={styles.input}
|
||||
className={`${styles.input} ${hasError ? styles.error : null}`}
|
||||
type="text"
|
||||
pattern="[a-z]*"
|
||||
placeholder={placeHolder}
|
||||
{...props}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user