Skip to content

Commit 0fc8725

Browse files
Merge pull request #3450 from getAlby/kind-description
feat: kind description
2 parents be28b3c + 116965b commit 0fc8725

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

src/app/screens/Nostr/ConfirmSignMessage.tsx

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import SuccessMessage from "@components/SuccessMessage";
55
import {
66
PopiconsChevronBottomLine,
77
PopiconsChevronTopLine,
8+
PopiconsCircleInfoLine,
89
} from "@popicons/react";
910
import { useState } from "react";
1011
import { Trans, useTranslation } from "react-i18next";
@@ -122,8 +123,16 @@ function ConfirmSignMessage() {
122123
}),
123124
}),
124125
}}
125-
// eslint-disable-next-line react/jsx-key
126-
components={[<i></i>]}
126+
components={[
127+
// eslint-disable-next-line react/jsx-key
128+
<a
129+
href={`https://nostrbook.dev/kinds/${event.kind}`}
130+
target="_blank"
131+
rel="noopener noreferrer"
132+
>
133+
<PopiconsCircleInfoLine className="inline-flex w-4 h-4 ml-1" />
134+
</a>,
135+
]}
127136
/>
128137
}
129138
content={content}

src/i18n/locales/en/translation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@
949949
"title": "Nostr",
950950
"allow": "Allow {{publisher}} to {{action}}",
951951
"content": "This website asks you to sign:",
952-
"allow_sign_event": "Allow {{host}} to sign a <0>{{kind}}</0> event",
952+
"allow_sign_event": "Allow {{host}} to sign a <0>{{kind}}<0></0></0> event",
953953
"block_and_ignore": "Block and ignore {{host}}",
954954
"block_added": "Added {{host}} to the blocklist, please reload the website.",
955955
"recipient": "Recipient",

0 commit comments

Comments
 (0)