Fixes: Minor layout issue in settings sidebar header

This commit is contained in:
Tom Moor
2018-05-20 20:21:39 -07:00
parent 6222d210be
commit 05339441e7
3 changed files with 7 additions and 7 deletions

View File

@ -29,7 +29,7 @@ class SettingsSidebar extends React.Component<Props> {
return (
<Sidebar>
<HeaderBlock
subheading="◄ Return to Dashboard"
subheading="◄ Return to App"
teamName={team.name}
logoUrl={team.avatarUrl}
onClick={this.returnToDashboard}

View File

@ -35,9 +35,9 @@ function HeaderBlock({
}
const StyledExpandedIcon = styled(ExpandedIcon)`
position: relative;
top: 6px;
left: -4px;
position: absolute;
right: 0;
top: 0;
`;
const Subheading = styled.div`
@ -49,8 +49,9 @@ const Subheading = styled.div`
`;
const TeamName = styled.div`
position: relative;
padding-left: 10px;
margin-top: ${props => (props.showDisclosure ? '-8px' : '0')};
padding-right: 24px;
font-weight: 600;
color: ${color.text};
text-decoration: none;

View File

@ -59,7 +59,6 @@ type Props = {
active?: boolean,
};
@withRouter
@observer
class SidebarLink extends React.Component<Props> {
@observable expanded: boolean = false;
@ -158,4 +157,4 @@ const Content = styled.div`
width: 100%;
`;
export default SidebarLink;
export default withRouter(SidebarLink);