"use client"; import React, { useRef, useState } from "react"; import globalStyle from "../../globalStyle.module.css"; import TopHeader from "@/app/components/topHeader/TopHeader"; import styles from "./styles.module.css"; import Image from "next/image"; import TopToolTip from "@/app/components/topToolTip/TopToolTip"; import TextField from "@/app/components/fields/textfield"; import Alert from "@/app/components/alerts/Alert"; import Prompts from "@/app/components/prompts/Prompts"; const AddCredentials = () => { const [triggerAlert, setTriggerAlert] = useState(false); const inputRef = useRef(); const [error, setError] = useState(false); const HandleSubmit = (e) => { e.preventDefault(); if (!inputRef.current.value.trim()) { setError(true); console.log("alsdjfakjhsks"); // triggers red border return; } setError(false); setTriggerAlert(true); }; return (
{triggerAlert && ( setEditState(true)} title="Create Organization" /> )}
badge image

Organization Badge(Optional)

Organization Name *

); }; export default AddCredentials;