summaryrefslogtreecommitdiff
path: root/client/src/pages/Update/Update.jsx
diff options
context:
space:
mode:
authorRohan Raj Gupta <[email protected]>2022-08-18 19:27:42 +0530
committerGitHub <[email protected]>2022-08-18 19:27:42 +0530
commit6c924aef55707885cbbf9af8348564526ac146ee (patch)
treef837dcd278a6d6de9adf123b827b2e8b35835221 /client/src/pages/Update/Update.jsx
parent6b85ebee8986b982e05d49c8f1a326deb3e08bae (diff)
parentd391caf122fcdf7ff4a9e227748b9a10242b15d6 (diff)
Merge pull request #7 from rohan09-raj/fix2
Added modal and audio assets, and Completed update flow
Diffstat (limited to 'client/src/pages/Update/Update.jsx')
-rw-r--r--client/src/pages/Update/Update.jsx29
1 files changed, 6 insertions, 23 deletions
diff --git a/client/src/pages/Update/Update.jsx b/client/src/pages/Update/Update.jsx
index eb0aa58..63343f1 100644
--- a/client/src/pages/Update/Update.jsx
+++ b/client/src/pages/Update/Update.jsx
@@ -1,13 +1,14 @@
import React from 'react'
-import { useNavigate } from 'react-router-dom'
import Header from '../../components/Header/Header'
import styles from './Update.module.css'
import Input from '../../components/Input/Input'
import { Grid, Button } from '@mui/material'
import { userContext } from '../../context/User'
+import { useNavigate } from 'react-router-dom'
const Update = () => {
const { aadhaarNumber, setAadhaarNumber } = userContext()
+
const navigate = useNavigate()
return (
@@ -30,29 +31,11 @@ const Update = () => {
size="large"
type="submit"
variant="contained"
+ onClick={() => {
+ navigate('/update/otp')
+ }}
>
- Send OTP
- </Button>
- </Grid>
- </Grid>
- </div>
- <div className={styles.subheading__container}>
- <h3 className={styles.subheading}> Enter OTP </h3>
- <Input
- type="text"
- id="aadhaarNumber"
- placeholder="Enter One Time Password"
- />
- <Grid container columnSpacing={10} justifyContent="center">
- <Grid item>
- <Button
- color="primary"
- size="large"
- type="submit"
- variant="contained"
- onClick={() => navigate('/update/select-update')}
- >
- Verify OTP
+ Submit
</Button>
</Grid>
</Grid>