fix: Use real icon on settings back arrow
This commit is contained in:
@ -2,6 +2,7 @@
|
|||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { observer, inject } from 'mobx-react';
|
import { observer, inject } from 'mobx-react';
|
||||||
import type { RouterHistory } from 'react-router-dom';
|
import type { RouterHistory } from 'react-router-dom';
|
||||||
|
import styled from 'styled-components';
|
||||||
import {
|
import {
|
||||||
DocumentIcon,
|
DocumentIcon,
|
||||||
EmailIcon,
|
EmailIcon,
|
||||||
@ -13,6 +14,7 @@ import {
|
|||||||
LinkIcon,
|
LinkIcon,
|
||||||
TeamIcon,
|
TeamIcon,
|
||||||
BulletedListIcon,
|
BulletedListIcon,
|
||||||
|
ExpandedIcon,
|
||||||
} from 'outline-icons';
|
} from 'outline-icons';
|
||||||
import ZapierIcon from './icons/Zapier';
|
import ZapierIcon from './icons/Zapier';
|
||||||
import SlackIcon from './icons/Slack';
|
import SlackIcon from './icons/Slack';
|
||||||
@ -49,7 +51,11 @@ class SettingsSidebar extends React.Component<Props> {
|
|||||||
return (
|
return (
|
||||||
<Sidebar>
|
<Sidebar>
|
||||||
<HeaderBlock
|
<HeaderBlock
|
||||||
subheading="◄ Return to App"
|
subheading={
|
||||||
|
<ReturnToApp align="center">
|
||||||
|
<BackIcon /> Return to App
|
||||||
|
</ReturnToApp>
|
||||||
|
}
|
||||||
teamName={team.name}
|
teamName={team.name}
|
||||||
logoUrl={team.avatarUrl}
|
logoUrl={team.avatarUrl}
|
||||||
onClick={this.returnToDashboard}
|
onClick={this.returnToDashboard}
|
||||||
@ -145,4 +151,13 @@ class SettingsSidebar extends React.Component<Props> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const BackIcon = styled(ExpandedIcon)`
|
||||||
|
transform: rotate(90deg);
|
||||||
|
margin-left: -8px;
|
||||||
|
`;
|
||||||
|
|
||||||
|
const ReturnToApp = styled(Flex)`
|
||||||
|
height: 16px;
|
||||||
|
`;
|
||||||
|
|
||||||
export default inject('auth', 'policies')(SettingsSidebar);
|
export default inject('auth', 'policies')(SettingsSidebar);
|
||||||
|
Reference in New Issue
Block a user