From a832f59adf0a9440b52b7d0773c11d4018a2ef1b Mon Sep 17 00:00:00 2001 From: Nick Koukis Date: Sat, 14 Oct 2023 00:47:12 +0300 Subject: [PATCH] test json data --- .../Home/components/NewUserForm/ViewWallet.tsx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/views/Home/components/NewUserForm/ViewWallet.tsx b/src/views/Home/components/NewUserForm/ViewWallet.tsx index e685355..4f54049 100644 --- a/src/views/Home/components/NewUserForm/ViewWallet.tsx +++ b/src/views/Home/components/NewUserForm/ViewWallet.tsx @@ -8,9 +8,13 @@ interface UserInfo { interface ViewWalletProps { userInfo: UserInfo; isLoadingUserInfo: boolean; + jsonPrettyData: string; } -const ViewWallet: React.FC = ({ userInfo, isLoadingUserInfo }) => { +const ViewWallet: React.FC = ({ userInfo, isLoadingUserInfo, jsonPrettyData }) => { + + const parsedData = JSON.parse(jsonPrettyData); + return (
{isLoadingUserInfo ? ( @@ -20,6 +24,13 @@ const ViewWallet: React.FC = ({ userInfo, isLoadingUserInfo })

View Wallet

Address: {userInfo.address}

Secret Words: {userInfo.secretWords.join(', ')}

+
+ {Object.keys(parsedData).map(key => ( +
+ {key}: {parsedData[key]} +
+ ))} +
)}