PageSourceSearch

https://react-blog2.netlify.app/assets/register.page-JeFuY0DV.js

js react-blog2.netlify.app collected 2026-10-03 11:19:24 UTC 1,453 bytes, 1 lines download raw bytes

1import{r as s,j as e,L as p}from"./index-BjK1HIx-.js";import{I as t}from"./Input-hqGAkmWT.js";function j(){const[l,o]=s.useState(""),[n,i]=s.useState(""),[c,m]=s.useState(""),[a,r]=s.useState(),d=u=>{u.preventDefault();try{console.log(l,n,c),r(null)}catch(x){x.response.status===401&&r("The email or password is not correct")}};return e.jsx("div",{children:e.jsx("div",{className:"relative flex flex-col justify-center min-h-[83vh] overflow-hidden",children:e.jsxs("div",{className:"w-full p-6 m-auto bg-base-200 text-neutral-content rounded-md shadow-md lg:max-w-lg",children:[e.jsx("h1",{className:"text-3xl font-semibold text-center text-primary",children:"Register"}),e.jsxs("form",{className:"space-y-4 mt-5",onSubmit:d,children:[a&&e.jsx("div",{className:"alert py-2 px-4 alert-warning",children:a}),e.jsx(t,{label:"User Name",type:"text",className:"col-span-2",placeholder:"User Name",auth:!0,required:!0,setData:o}),e.jsx(t,{label:"Email",type:"email",className:"col-span-2",placeholder:"Email",auth:!0,required:!0,setData:i}),e.jsx(t,{label:"Password",type:"password",className:"col-span-2",placeholder:"Password",auth:!0,required:!0,setData:m}),e.jsx("div",{className:"flex justify-center py-2",children:e.jsx("button",{className:"btn btn-primary w-full min-w-xs",children:"Register"})}),e.jsx(p,{to:"/login",className:"text-base-content hover:underline hover:text-primary py-2",children:"You have account ?"})]})]})})})}export{j as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.