@@ -2,7 +2,7 @@ import { useState } from 'react';
22import axios from 'axios' ;
33import { toast } from 'react-toastify' ;
44import { ENDPOINTS } from '../../../utils/URL' ;
5- import './LBRegister.css' ;
5+ import styles from './LBRegister.module .css' ;
66import logo from '../../../assets/images/logo2.png' ;
77
88function LBRegister ( ) {
@@ -64,21 +64,21 @@ function LBRegister() {
6464 } ;
6565
6666 return (
67- < div className = "lb-register-page" >
68- < div className = "lb-register-logo" >
67+ < div className = { ` ${ styles . lbRegisterPage } ` } >
68+ < div className = { ` ${ styles . lbRegisterLogo } ` } >
6969 < img src = { logo } alt = "One Community Logo" />
7070 </ div >
71- < div className = "lb-register-container" >
72- < div className = "lb-register-top" />
73- < div className = "lb-register-main" >
71+ < div className = { ` ${ styles . lbRegisterContainer } ` } >
72+ < div className = { ` ${ styles . lbRegisterTop } ` } />
73+ < div className = { ` ${ styles . lbRegisterMain } ` } >
7474 < h2 > Registration Page</ h2 >
7575 < p >
7676 Filling the details below will allow you to bid or rent a unit from a village of your
7777 choice in our property. Clicking the submit button will confirm all your details with us
7878 and will take you to our login page.
7979 </ p >
80- < div className = "lb-register-form-wrapper" >
81- < form className = "lb-register-form" onSubmit = { handleSubmit } >
80+ < div className = { ` ${ styles . lbRegisterFormWrapper } ` } >
81+ < form className = { ` ${ styles . lbRegisterForm } ` } onSubmit = { handleSubmit } >
8282 < input
8383 type = "text"
8484 name = "firstName"
@@ -87,7 +87,9 @@ function LBRegister() {
8787 onChange = { handleChange }
8888 required
8989 />
90- { errors . firstName && < p className = "lb-register-error" > { errors . firstName } </ p > }
90+ { errors . firstName && (
91+ < p className = { `${ styles . lbRegisterError } ` } > { errors . firstName } </ p >
92+ ) }
9193
9294 < input
9395 type = "text"
@@ -97,7 +99,7 @@ function LBRegister() {
9799 onChange = { handleChange }
98100 required
99101 />
100- { errors . lastName && < p className = "lb-register-error" > { errors . lastName } </ p > }
102+ { errors . lastName && < p className = { ` ${ styles . lbRegisterError } ` } > { errors . lastName } </ p > }
101103
102104 < input
103105 type = "email"
@@ -107,7 +109,7 @@ function LBRegister() {
107109 onChange = { handleChange }
108110 required
109111 />
110- { errors . email && < p className = "lb-register-error" > { errors . email } </ p > }
112+ { errors . email && < p className = { ` ${ styles . lbRegisterError } ` } > { errors . email } </ p > }
111113
112114 < input
113115 type = "text"
@@ -117,7 +119,7 @@ function LBRegister() {
117119 onChange = { handleChange }
118120 required
119121 />
120- { errors . phone && < p className = "lb-register-error" > { errors . phone } </ p > }
122+ { errors . phone && < p className = { ` ${ styles . lbRegisterError } ` } > { errors . phone } </ p > }
121123
122124 < input
123125 type = "password"
@@ -127,7 +129,7 @@ function LBRegister() {
127129 onChange = { handleChange }
128130 required
129131 />
130- { errors . password && < p className = "lb-register-error" > { errors . password } </ p > }
132+ { errors . password && < p className = { ` ${ styles . lbRegisterError } ` } > { errors . password } </ p > }
131133
132134 < button type = "submit" > Click to Register</ button >
133135 </ form >
0 commit comments