Add icon to clarify menu functionality

This commit is contained in:
Tom Moor
2018-05-06 14:01:28 -07:00
parent b37ed1f8d0
commit 3f5a9fdb3a
3 changed files with 16 additions and 3 deletions

View File

@@ -2,6 +2,7 @@
import * as React from 'react';
import styled from 'styled-components';
import { color } from 'shared/styles/constants';
import { ExpandedIcon } from 'outline-icons';
import Flex from 'shared/components/Flex';
import TeamLogo from './TeamLogo';
@@ -16,13 +17,21 @@ function HeaderBlock({ teamName, subheading, logoUrl, ...rest }: Props) {
<Header justify="flex-start" align="center" {...rest}>
<TeamLogo src={logoUrl} />
<Flex align="flex-start" column>
<TeamName>{teamName}</TeamName>
<TeamName>
{teamName} <StyledExpandedIcon color={color.text} />
</TeamName>
<Subheading>{subheading}</Subheading>
</Flex>
</Header>
);
}
const StyledExpandedIcon = styled(ExpandedIcon)`
position: relative;
top: 6px;
left: -4px;
`;
const Subheading = styled.div`
padding-left: 10px;
font-size: 11px;