Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…app-v2 into customer
  • Loading branch information
DnyaneshWarade committed May 3, 2022
2 parents d0e329c + 70c22e2 commit 16ef737
Show file tree
Hide file tree
Showing 23 changed files with 12,474 additions and 1,171 deletions.
Binary file added frontend/public/assets/done.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion frontend/src/Routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const Routes = () => {
<Route exact path="/wallet" component={Wallet} />
<Route exact path="/dashboard" component={Dashboard} />
<Route exact path="/disbursement" component={Disbursement} />
<Route exact path="/sale" component={PanProof} />
<Route exact path="/sale" component={BusinessProof} />
<Route exact path="/pan" component={PanUpload} />
<Route exact path="/mobile" component={Mobile} />
<Route exact path="/VerifyNumber" component={VerifyNumber} />
Expand Down
78 changes: 40 additions & 38 deletions frontend/src/customer/onboarding/BusinessOption.js
Original file line number Diff line number Diff line change
@@ -1,48 +1,50 @@
import React from "react";
import React, { useState } from "react";
import { Container, Typography, Button } from "@mui/material";
import Radio from "@mui/material/Radio";
import RadioGroup from "@mui/material/RadioGroup";
import FormControlLabel from "@mui/material/FormControlLabel";
import FormControl from "@mui/material/FormControl";

const RadioButtonsGroup = () => {
return (
<FormControl sx={{ py: "22px" }}>
<RadioGroup
aria-labelledby="demo-radio-buttons-group-label"
defaultValue=""
>
<FormControlLabel
value="udyam"
control={<Radio color="default" />}
label="UDYAM"
/>
<FormControlLabel
value="shop"
control={<Radio color="default" />}
label="Shop establishment"
/>
<FormControlLabel
value="fssai"
control={<Radio color="default" />}
label="FSSAI"
/>
<FormControlLabel
value="gst"
control={<Radio color="default" />}
label="GST"
/>
<FormControlLabel
value="other"
control={<Radio color="default" />}
label="Others"
/>
</RadioGroup>
</FormControl>
);
};

const BusinessOption = () => {
const [option, setOption] = useState("");

const handleChange = (event) => {
setOption(event.target.value);
};

const RadioButtonsGroup = () => {
return (
<FormControl sx={{ py: "22px" }}>
<RadioGroup value={option} onChange={handleChange}>
<FormControlLabel
value="udyam"
control={<Radio color="default" />}
label="UDYAM"
/>
<FormControlLabel
value="shop"
control={<Radio color="default" />}
label="Shop establishment"
/>
<FormControlLabel
value="fssai"
control={<Radio color="default" />}
label="FSSAI"
/>
<FormControlLabel
value="gst"
control={<Radio color="default" />}
label="GST"
/>
<FormControlLabel
value="other"
control={<Radio color="default" />}
label="Others"
/>
</RadioGroup>
</FormControl>
);
};
return (
<>
<style>{"body { background-color: #7165E3; }"}</style>
Expand Down
13 changes: 1 addition & 12 deletions frontend/src/customer/onboarding/BusinessProof.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,11 @@ import React, { useState } from "react";
import { Container, Box, Typography } from "@mui/material";
import LinearProgress from "@mui/material/LinearProgress";
import UdyamUpload from "./businessProofComponents/UdyamUpload";
import UdyamUploaded from "./businessProofComponents/UdyamUploaded";
import ShopEstUpload from "./businessProofComponents/ShopEstUpload";
import ShopEstUploaded from "./businessProofComponents/ShopEstUploaded";
import FssaiUpload from "./businessProofComponents/FssaiUpload";
import FssaiUploaded from "./businessProofComponents/FssaiUploaded";
import GstUpload from "./businessProofComponents/GstUpload";
import GstUploaded from "./businessProofComponents/GstUploaded";
import BussinessProofUpload from "./businessProofComponents/BusinessProofUpload";
import BussinessProofUploaded from "./businessProofComponents/BusinessProofUploaded";
import BillUpload from "./businessProofComponents/BillUpload";
import BillUploaded from "./businessProofComponents/BillUploaded";
import Selfie from "./businessProofComponents/Selfie";

const LinearProgressWithLabel = (props) => {
Expand Down Expand Up @@ -86,16 +80,11 @@ const BusinessProof = () => {
{/* <UdyamUpload/> */}
{/* <UdyamUploaded /> */}
{/* <ShopEstUpload /> */}
{/* <ShopEstUploaded /> */}
{/* <FssaiUpload /> */}
{/* <FssaiUploaded /> */}
{/* <GstUpload/> */}
{/* <GstUploaded/> */}
{/* <BussinessProofUpload /> */}
{/* <BussinessProofUploaded/> */}
{/* <BillUpload /> */}
{/* <BillUploaded/> */}
{/* <Selfie/> */}
<Selfie/>
</Container>
</>
);
Expand Down
6 changes: 2 additions & 4 deletions frontend/src/customer/onboarding/PanProof.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ import LinearProgress from "@mui/material/LinearProgress";
import PanUpload from "./panProofComponents/PanUpload";
import PanUploaded from "./panProofComponents/PanUploaded";
import JobCard from "./panProofComponents/JobCard";
import JobCardUploaded from "./panProofComponents/JobCardUploaded";
import Aadhar from "./panProofComponents/Aadhar";
import AadharUploaded from "./panProofComponents/AadharUploaded";

const LinearProgressWithLabel = (props) => {
return (
Expand Down Expand Up @@ -66,11 +64,11 @@ const PanProof = () => {
case "jobCard":
return <JobCard handleClick={handleClick} />;
case "jobCardUploaded":
return <JobCardUploaded handleClick={handleClick} />;
return <JobCard handleClick={handleClick} />;
case "aadhar":
return <Aadhar handleClick={handleClick} />;
case "aadharUploaded":
return <AadharUploaded handleClick={handleClick} />;
return <Aadhar handleClick={handleClick} />;
default:
return <PanUpload />;
}
Expand Down
Loading

0 comments on commit 16ef737

Please sign in to comment.