interface: use buttons on banners

Fixes urbit/landscape#705
This commit is contained in:
Liam Fitzgerald 2021-07-12 14:47:37 +10:00
parent d9c73fa457
commit 9eff10ad5d
No known key found for this signature in database
GPG Key ID: D390E12C61D1CFFB

View File

@ -1,4 +1,4 @@
import { BaseImage, Box, Row, Text } from '@tlon/indigo-react';
import { BaseImage, Row, Text, Button } from '@tlon/indigo-react';
import { allowGroup, allowShips, Contact, share } from '@urbit/api';
import React, { ReactElement } from 'react';
import { Sigil } from '~/logic/lib/sigil';
@ -61,14 +61,15 @@ const ShareProfile = (props: ShareProfileProps): ReactElement | null => {
borderBottom={1}
borderColor="lightGray"
flexShrink={0}
px="3"
>
<Row pl={3} alignItems="center">
<Row alignItems="center">
{image}
<Text verticalAlign="middle" pl={2}>Share private profile?</Text>
</Row>
<Box pr={2} onClick={onClick}>
<Text color="blue" bold cursor="pointer">Share</Text>
</Box>
<Button primary onClick={onClick}>
Share
</Button>
</Row>
) : null;
};