add public key to community dialog

This commit is contained in:
Pavel Prichodko 2022-06-14 11:25:09 +02:00
parent 9996bd3e39
commit 6c970f74e2
No known key found for this signature in database
GPG Key ID: 8E4C82D464215E83
1 changed files with 5 additions and 2 deletions

View File

@ -4,7 +4,7 @@ import { useProtocol } from '~/src/protocol'
import { Button, CopyInput, Dialog, Flex, Grid, Text } from '~/src/system'
export const CommunityDialog = () => {
const { community } = useProtocol()
const { client, community } = useProtocol()
const { displayName, description } = community.identity!
return (
@ -15,7 +15,10 @@ export const CommunityDialog = () => {
<Dialog.Separator />
<Dialog.Body>
<Grid gap={3}>
<CopyInput label="Community Public Key" value="0xTODO" />
<CopyInput
label="Community Public Key"
value={client.community.publicKey}
/>
<Text size="13" color="gray">
To access this community, paste community public key in Status
desktop or mobile app.