Skip to content

Commit f9e2e8f

Browse files
Vinnu GollakotiVinnu Gollakoti
authored andcommitted
added payment details
1 parent 0acfde3 commit f9e2e8f

File tree

2 files changed

+38
-2
lines changed

2 files changed

+38
-2
lines changed

src/assets/upi.jpeg

48.6 KB
Loading

src/views/EventRegister.jsx

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { PiSparkleThin } from "react-icons/pi";
1414
import { FiLoader } from "react-icons/fi";
1515

1616
import { TfiMoney } from "react-icons/tfi";
17-
17+
import upi from "../assets/upi.jpeg"
1818
// -----------------------------------
1919

2020
import { useAuth } from "../contexts/AuthContext";
@@ -64,6 +64,9 @@ export default function EventRegister() {
6464
const slot = useRef();
6565
const section = useRef();
6666
const num = useRef();
67+
const upiID = useRef()
68+
const tnsID = useRef()
69+
const utrNo = useRef()
6770

6871
const registerForEvent = () => {
6972
if (!USER_PRESENT()) return;
@@ -86,6 +89,9 @@ export default function EventRegister() {
8689
? dept.current.value
8790
: otherDept?.current?.value,
8891
num: num.current.value,
92+
upiID : upiID.current.value,
93+
tnsID : tnsID.current.value,
94+
utrNo : utrNo.current.value
8995
}
9096
// { headers: { Authorization: currentUser.getIdToken() } }
9197
)
@@ -407,7 +413,7 @@ export default function EventRegister() {
407413
Entry Fee
408414
</div>
409415
<div className="content">
410-
Free
416+
200/-
411417
</div>
412418
</div>
413419
</div>
@@ -735,6 +741,36 @@ export default function EventRegister() {
735741
ref={num}
736742
/>
737743
</div>
744+
<div className = "row">
745+
<label for="num">Payment *</label>
746+
<img src={upi} alt="Upi scanner" style={{ width: '40%' , marginLeft: "30%"}} />
747+
<p style={{marginLeft: "35%"}}>Registration fee 200/-</p>
748+
</div>
749+
<div className="row">
750+
<label htmlFor="">Your UPI ID *</label>
751+
<input type="text" required autoComplete="off" ref={upiID}/>
752+
<span className="kluMailReminder" style={{ margin: "0px" , marginTop: "1%", color: "black"}}>
753+
<CiCircleInfo size={"15px"} />
754+
<span className="text">
755+
Ensure that you have entered your UPI ID.
756+
</span>
757+
</span>
758+
</div>
759+
<div className="row">
760+
<label htmlFor="">Transaction ID *</label>
761+
<input type="text"
762+
required
763+
ref={tnsID}
764+
autoComplete="off"/>
765+
</div>
766+
<div className="row">
767+
<label htmlFor="">UTR No *</label>
768+
<input type="text"
769+
required
770+
ref={utrNo}
771+
autoComplete="off"/>
772+
</div>
773+
738774
<div className="row">
739775
<button>
740776
{eventRegisteringInProgress

0 commit comments

Comments
 (0)