From 200f4f58a7e4b906a9d44e7bc53b60152a584f49 Mon Sep 17 00:00:00 2001 From: DwCay Date: Tue, 30 Aug 2022 22:49:13 +0300 Subject: [PATCH] Added the ability to share account data --- src/pages/digitalId/ProfileId.jsx | 10 ++++++++- src/store/store.js | 37 +++++++++++++++++++++++++------ src/utils/Utils.js | 12 +++++++++- 3 files changed, 50 insertions(+), 9 deletions(-) diff --git a/src/pages/digitalId/ProfileId.jsx b/src/pages/digitalId/ProfileId.jsx index 8f669cc..5dbd2c2 100644 --- a/src/pages/digitalId/ProfileId.jsx +++ b/src/pages/digitalId/ProfileId.jsx @@ -165,6 +165,11 @@ const Profile = observer (() => { store.pushAccountDataToBlockchain(updatedData.filter(elem=>elem.status!=='Stored')) }; + const sharedDataAccount = () => { + const sharedData = store.decryptedAccountData.filter(item => selectedItems.includes(item.key)) + store.pushSharedData(sharedData) + } + const addDataParameters = () => { const label = addedValues.label.toLowerCase().split(' ').join(''); if(labelMap[label]) @@ -517,7 +522,10 @@ const Profile = observer (() => { Update -