Skip to content

Commit

Permalink
[INJIMOB-781] fix receivedcards wrap copilot provider error (mosip#1478)
Browse files Browse the repository at this point in the history
Signed-off-by: srikanth716 <[email protected]>
Signed-off-by: Swati Goel <[email protected]>
Co-authored-by: Swati Goel <[email protected]>
  • Loading branch information
srikanth716 and swatigoel authored Jun 4, 2024
1 parent 4496150 commit 9f5f525
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .talismanrc
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,8 @@ fileignoreconfig:
checksum: b168940c6b487dc96fd22f564f2e187dae46f4fa5e4a64cf81c4d810b1c1ae78
- filename: ios/Inji.xcodeproj/project.pbxproj
checksum: 4359976ed4d1ac3206d76b87d3458d070027199c8569ba123436c4b5343aba74
- filename: screens/Settings/ReceivedCardsModal.tsx
checksum: 6dee9153a61009b0252d294154c88d5e1b241a517c76e930b391a39d7bc52392
- filename: components/FaceScanner/FaceCompare.tsx
checksum: 947b6d75543e2bf959ca2d95dd7224051e0b4ec2c28f7515f923701e22a932f0
- filename: components/FaceScanner/LivenessDetection.tsx
Expand Down
22 changes: 13 additions & 9 deletions screens/Settings/ReceivedCardsModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {Modal} from '../../components/ui/Modal';
import {ViewVcModal} from '../Home/ViewVcModal';
import {VcItemContainer} from '../../components/VC/VcItemContainer';
import {VCItemContainerFlowType} from '../../shared/Utils';
import {CopilotProvider} from 'react-native-copilot';

export const ReceivedCardsModal: React.FC<ReceivedCardsProps> = ({
isVisible,
Expand All @@ -32,15 +33,18 @@ export const ReceivedCardsModal: React.FC<ReceivedCardsProps> = ({
onRefresh={controller.REFRESH}
/>
}>
{controller.receivedVcsMetadata.map(vcMetadata => (
<VcItemContainer
key={vcMetadata.getVcKey()}
vcMetadata={vcMetadata}
margin="0 2 8 2"
flow={VCItemContainerFlowType.VC_SHARE}
onPress={controller.VIEW_VC}
/>
))}
<CopilotProvider>
{controller.receivedVcsMetadata.map(vcMetadata => (
<VcItemContainer
key={vcMetadata.getVcKey()}
vcMetadata={vcMetadata}
margin="0 2 8 2"
flow={VCItemContainerFlowType.VC_SHARE}
onPress={controller.VIEW_VC}
/>
))}
</CopilotProvider>

{controller.receivedVcsMetadata.length === 0 && (
<React.Fragment>
<Centered fill>
Expand Down

0 comments on commit 9f5f525

Please sign in to comment.