Skip to content

Commit

Permalink
update rm vc msg
Browse files Browse the repository at this point in the history
  • Loading branch information
lukachi committed Feb 7, 2024
1 parent a0e7602 commit a3fffa4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/snap/snap.manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/rarimo/rarime.git"
},
"source": {
"shasum": "WFQiD1nKO8Ur2/uNFquE2qZJnULye7ccAsK14ZLp1vY=",
"shasum": "GXjkIUlw10uOTKYgvXjwAgAfyxq3NCnwNlQN/ITO7mU=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
16 changes: 9 additions & 7 deletions packages/snap/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,17 +115,19 @@ export const onRpcRequest = async ({

const vcs = await vcManager.getDecryptedVCsByClaimIds(claimIds);

const dialogContent = [
heading('Remove Credentials'),
divider(),
...vcs.map((el) => text(`${el.type[1]}`)), // FIXME
];

const res = await snap.request({
method: 'snap_dialog',
params: {
type: 'confirmation',
content: panel([...dialogContent]),
content: panel([
heading('Remove Credentials'),
divider(),
...vcs.map((el) => {
const vcTargetType = el.type[1];

return text(`${vcTargetType}\n`);
}),
]),
},
});

Expand Down

0 comments on commit a3fffa4

Please sign in to comment.