copy public keys in right panel (#308)

This commit is contained in:
Bullish Bear 2023-11-20 12:01:13 +08:00 committed by GitHub
parent a149874f15
commit 5b222e4138
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,6 +9,7 @@ import { DirectMessagePanelUpdate } from "./message-panel.tsx";
import { HomeIcon } from "./icons/home-icon.tsx";
import { KeyIcon } from "./icons/key-icon.tsx";
import { UserIcon } from "./icons/user-icon.tsx";
import { CopyButton } from "./components/copy-button.tsx";
type UserDetailProps = {
targetUserProfile: ProfileData;
@ -38,6 +39,7 @@ export function UserDetail(props: UserDetailProps) {
>
{props.pubkey.bech32()}
</p>
<CopyButton text={props.pubkey.bech32()} />
</div>
<div class={tw`flex items-start overflow-hidden w-full mt-1 group`}>
<KeyIcon
@ -51,6 +53,7 @@ export function UserDetail(props: UserDetailProps) {
>
{props.pubkey.hex}
</p>
<CopyButton text={props.pubkey.hex} />
</div>
{props.targetUserProfile.about
? (