Validations added temporarily

This commit is contained in:
Laux Dev
2026-03-05 11:52:21 +08:00
parent 7f42f61431
commit dae12d74ee
13 changed files with 116 additions and 171 deletions

View File

@@ -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}
/>