mirror of
https://github.com/BlowaterNostr/blowater.git
synced 2024-10-18 15:43:20 +00:00
copy public keys in right panel (#308)
This commit is contained in:
parent
a149874f15
commit
5b222e4138
@ -9,6 +9,7 @@ import { DirectMessagePanelUpdate } from "./message-panel.tsx";
|
|||||||
import { HomeIcon } from "./icons/home-icon.tsx";
|
import { HomeIcon } from "./icons/home-icon.tsx";
|
||||||
import { KeyIcon } from "./icons/key-icon.tsx";
|
import { KeyIcon } from "./icons/key-icon.tsx";
|
||||||
import { UserIcon } from "./icons/user-icon.tsx";
|
import { UserIcon } from "./icons/user-icon.tsx";
|
||||||
|
import { CopyButton } from "./components/copy-button.tsx";
|
||||||
|
|
||||||
type UserDetailProps = {
|
type UserDetailProps = {
|
||||||
targetUserProfile: ProfileData;
|
targetUserProfile: ProfileData;
|
||||||
@ -38,6 +39,7 @@ export function UserDetail(props: UserDetailProps) {
|
|||||||
>
|
>
|
||||||
{props.pubkey.bech32()}
|
{props.pubkey.bech32()}
|
||||||
</p>
|
</p>
|
||||||
|
<CopyButton text={props.pubkey.bech32()} />
|
||||||
</div>
|
</div>
|
||||||
<div class={tw`flex items-start overflow-hidden w-full mt-1 group`}>
|
<div class={tw`flex items-start overflow-hidden w-full mt-1 group`}>
|
||||||
<KeyIcon
|
<KeyIcon
|
||||||
@ -51,6 +53,7 @@ export function UserDetail(props: UserDetailProps) {
|
|||||||
>
|
>
|
||||||
{props.pubkey.hex}
|
{props.pubkey.hex}
|
||||||
</p>
|
</p>
|
||||||
|
<CopyButton text={props.pubkey.hex} />
|
||||||
</div>
|
</div>
|
||||||
{props.targetUserProfile.about
|
{props.targetUserProfile.about
|
||||||
? (
|
? (
|
||||||
|
Loading…
Reference in New Issue
Block a user