Merge pull request #4372 from urbit/la/vis-fix

interface: popover settings style fixes
This commit is contained in:
L 2021-02-03 18:20:12 -06:00 committed by GitHub
commit 1bc5e6d103
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 16 deletions

View File

@ -25,7 +25,7 @@ export function ChannelNotifications(props: ChannelNotificationsProps) {
};
return (
<Col mb="6" gapY="4">
<Col mb="6" gapY="4" flexShrink={0}>
<Text id="notifications" fontSize="2" fontWeight="bold">
Channel Notifications
</Text>

View File

@ -99,21 +99,21 @@ export function ChannelPopoverRoutes(props: ChannelPopoverRoutesProps) {
<ChannelDetails {...props} />
<GraphPermissions {...props} />
{ isOwner ? (
<Col mt="5" mb="6">
<Text id="archive" fontSize="2" fontWeight="bold">
Archive channel
</Text>
<Text mt="1" maxWidth="450px" gray>
Archiving a channel will prevent further updates to the channel.
Users who are currently joined to the channel will retain a copy
of the channel.
</Text>
<Row mt="3">
<StatelessAsyncButton destructive onClick={handleArchive}>
Archive {props.association.metadata.title}
</StatelessAsyncButton>
</Row>
</Col>
<Col mt="5" mb="6" flexShrink={0}>
<Text id="archive" fontSize="2" fontWeight="bold">
Archive channel
</Text>
<Text mt="1" maxWidth="450px" gray>
Archiving a channel will prevent further updates to the channel.
Users who are currently joined to the channel will retain a copy
of the channel.
</Text>
<Row mt="3">
<StatelessAsyncButton destructive onClick={handleArchive}>
Archive {props.association.metadata.title}
</StatelessAsyncButton>
</Row>
</Col>
) : (
<Col mt="5" mb="6">

View File

@ -338,6 +338,11 @@ function Participant(props: {
gapY={2}
p={2}
>
<Action bg="transparent">
<Link to={`/~profile/~${contact.patp}`}>
<Text color="black">View Profile</Text>
</Link>
</Action>
<Action bg="transparent">
<Link to={`/~landscape/dm/${contact.patp}`}>
<Text color="green">Send Message</Text>