forked from Blazity/next-enterprise
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Blazity#5 from MyBeaconLabs/feature/myb-1315-trans…
…action-flow-2 Flow Transaction 2
- Loading branch information
Showing
6 changed files
with
112 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
'use client' | ||
|
||
import { Button } from "components/Button/Button"; | ||
import { Input } from "components/Input/Input"; | ||
import Select from "components/Select/Select"; | ||
import Switch from "components/Switch/Switch"; | ||
import { useRouter } from "next/navigation"; | ||
|
||
export default function RemitDeclaration() { | ||
const router = useRouter() | ||
return ( | ||
<section className="h-[80vh] flex justify-between flex-col"> | ||
<div> | ||
<h3 className='font-tiempos text-[28px] font-normal leading-9'>Remit declaration </h3> | ||
<p className='text-xs text-secondary mt-2 mb-6'>This is required by RBI for remittance regulation purpose Know more about yearly limitation </p> | ||
<p className="font-semibold text-sm mb-3">Total remittance processed by you with “MyBeacon Services Inc” this financial year (Apr 2024 - Mar 2025) ?</p> | ||
<Input label="₹ 0.00"/> | ||
<div className="flex items-center space-x-4 mt-6 mb-6"> | ||
<p className="text-xs font-medium">Have you processed any remittance this year through other financial institutions (Apr 2024 - Mar 2025)</p> | ||
<Switch/> | ||
</div> | ||
<Input label="Amount"/> | ||
<div className="w-full border-t border-gray-300 mt-5 mb-6"></div> | ||
<Select options={["No","Yes"]} label='Have you availed any student education loan?'/> | ||
</div> | ||
<Button style='mt-10' onClick={()=>{router.push("confirm-details")}} >Continue</Button> | ||
</section> | ||
|
||
) | ||
} |
29 changes: 26 additions & 3 deletions
29
app/transaction-details/upload-documents/components/DocumentstoUpload/DocumentstoUpload.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,32 @@ | ||
'use client' | ||
|
||
import React from 'react' | ||
import Image from 'next/image'; | ||
import InfoIcon from '../../../../../public/images/infoIcon.svg'; | ||
import { UploadFile } from 'components/UploadFile/UploadFile'; | ||
import { Button } from 'components/Button/Button'; | ||
import Link from 'next/link'; | ||
import { useRouter } from 'next/navigation'; | ||
|
||
export const DocumentstoUpload = () => { | ||
const router = useRouter() | ||
return ( | ||
<div className="border mt-6 border-gray-300 rounded-lg p-4 bg-white max-w-sm"> | ||
asd | ||
</div> | ||
<section className='flex flex-col items-between'> | ||
<div className="border mt-6 border-gray-300 rounded-lg p-4 bg-white"> | ||
<div className='flex justify-between'> | ||
<h3 className='font-bold'>Document required for student</h3> | ||
<Image src={InfoIcon} alt='Info Icon'/> | ||
</div> | ||
<p className='text-xs text-secondary mt-2 mb-6'>All documents must be in PDF, JPEG, JPG, or PNG format with a maximum size of 5MB. </p> | ||
<UploadFile title='Student Admission Letter*' subtitle='(Approved University signed letter)'/> | ||
<UploadFile title='Student Passport' subtitle='(Front and Back)'/> | ||
<UploadFile title='Student Visa ' subtitle='Upload a photo from your passport'/> | ||
<Link href="/add-beneficiary" className="text-green font-semibold text-center underline"> | ||
View document samples | ||
</Link> | ||
</div> | ||
|
||
<Button style='mt-10' onClick={()=>{router.push("remit-declaration")}} >Continue</Button> | ||
</section> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { useState } from 'react'; | ||
|
||
const Switch = () => { | ||
const [enabled, setEnabled] = useState(false); | ||
|
||
return ( | ||
<button | ||
onClick={() => setEnabled(!enabled)} | ||
className={`${ | ||
enabled ? 'bg-green' : 'bg-gray-200' | ||
} relative inline-flex h-6 min-w-11 items-center rounded-full transition-colors focus:outline-none`} | ||
> | ||
<span | ||
className={`${ | ||
enabled ? 'translate-x-6' : 'translate-x-1' | ||
} inline-block h-4 w-4 transform bg-white rounded-full transition-transform`} | ||
/> | ||
</button> | ||
); | ||
}; | ||
|
||
export default Switch; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
'use client' | ||
|
||
import { Button } from 'components/Button/Button' | ||
import React from 'react' | ||
|
||
interface UploadFileProps { | ||
title: string; | ||
subtitle: string; | ||
} | ||
export const UploadFile: React.FC<UploadFileProps> = ({ title, subtitle }) => { | ||
return ( | ||
<> | ||
<div className='flex justify-between'> | ||
<div> | ||
<h3 className='font-semibold text-sm'>{title}</h3> | ||
<p className='text-xs text-secondary'>{subtitle}</p> | ||
</div> | ||
<Button intent={'secondary'} size={'sm'} onClick={()=> {}}>Upload</Button> | ||
</div> | ||
<div className="w-full border-t border-gray-300 mt-4 mb-6"></div> | ||
|
||
</> | ||
) | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.