-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MOSIP-32711: Added submit flow in request policy (#408)
Signed-off-by: SwethaKrish4 <[email protected]>
- Loading branch information
1 parent
6bc961d
commit 2546b65
Showing
8 changed files
with
249 additions
and
21 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
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
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
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
67 changes: 67 additions & 0 deletions
67
pmp-reactjs-ui/src/pages/policies/RequestPolicyConfirmation.js
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,67 @@ | ||
import React from 'react' | ||
import { useNavigate } from "react-router-dom"; | ||
import { useTranslation } from "react-i18next"; | ||
import { getUserProfile } from '../../services/UserProfileService'; | ||
import { isLangRTL } from '../../utils/AppUtils'; | ||
|
||
import backArrow from '../../svg/back_arrow.svg'; | ||
import successIcon from '../../svg/success_message_icon.svg'; | ||
|
||
function RequestPolicyConfirmation() { | ||
|
||
const navigate = useNavigate(); | ||
const { t } = useTranslation(); | ||
const isLoginLanguageRTL = isLangRTL(getUserProfile().langCode); | ||
|
||
const moveToHome = () => { | ||
navigate('/partnermanagement') | ||
}; | ||
|
||
const moveToPolicies = () => { | ||
navigate('/partnermanagement/policies') | ||
}; | ||
|
||
return ( | ||
<div className="ml-32 mr-5 mt-5 w-[100%] h-[100%] font-inter"> | ||
<div className="flex-col"> | ||
<div className="flex items-start space-x-3"> | ||
<img src={backArrow} alt="" className="mt-[1%] cursor-pointer" /> | ||
<div className="flex-col"> | ||
<h1 className="font-semibold text-xl text-dark-blue">{t('requestPolicy.requestPolicy')}</h1> | ||
<div className="flex space-x-1"> | ||
<p onClick={() => moveToHome()} className="font-semibold text-tory-blue text-xs cursor-pointer"> | ||
{t('commons.home')} / | ||
</p> | ||
<p onClick={() => moveToPolicies()} className="font-semibold text-tory-blue text-xs cursor-pointer"> | ||
{t('requestPolicy.policies')} | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
<div className="flex items-center justify-center w-[100%] h-[480px] bg-snow-white mt-[1.5%] rounded-lg shadow-md"> | ||
<div className="flex-col justify-center"> | ||
<img src={successIcon} alt="" className={`${isLoginLanguageRTL ? "mr-56" : "ml-56"} h-40`} /> | ||
<div className="text-center"> | ||
<h1 className="font-bold text-black text-lg"> | ||
{t('requestPolicy.policySuccessHeader')} | ||
</h1> | ||
<p className="text-[#666666] text-sm font-semibold"> | ||
{t('requestPolicy.policySuccessMsg')} | ||
</p> | ||
<div className="flex space-x-3 mt-12 border justify-center"> | ||
<button onClick={() => moveToPolicies()} type="button" className="text-white font-semibold bg-tory-blue rounded-md text-base px-12 py-4"> | ||
{t('commons.goBack')} | ||
</button> | ||
<button onClick={() => moveToHome()} type="button" className="text-[#1447b2] font-semibold bg-white border border-[#1447b2] rounded-md text-base px-12 py-4"> | ||
{t('commons.home')} | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
export default RequestPolicyConfirmation; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.