This repository was archived by the owner on Nov 8, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +23
-3
lines changed
Expand file tree Collapse file tree 3 files changed +23
-3
lines changed Original file line number Diff line number Diff line change 77import React from 'react'
88import { inject , observer } from 'mobx-react'
99import keydown from 'react-keydown'
10+ import { Row , Col } from 'antd'
1011
1112// import Link from 'next/link'
1213import { Button } from '../../components'
@@ -25,6 +26,7 @@ import {
2526 Search ,
2627 Notification ,
2728 HeaderIcon ,
29+ StateIcon ,
2830 User ,
2931} from './styles'
3032
@@ -59,7 +61,12 @@ class HeaderContainer extends React.Component {
5961 ghost
6062 onClick = { logic . openPreview . bind ( this , 'mst-state' ) }
6163 >
62- state
64+ < Row >
65+ < Col span = { 9 } >
66+ < StateIcon path = { getSVGIconPath ( 'header_state' ) } />
67+ </ Col >
68+ < Col span = { 12 } > State</ Col >
69+ </ Row >
6370 </ Button >
6471 </ Admin >
6572 < Search onClick = { logic . openDoraemon } >
Original file line number Diff line number Diff line change @@ -16,11 +16,15 @@ export const Router = styled.div`
1616`
1717
1818export const Admin = styled . div `
19- margin-right: 10px ;
19+ margin-right: 25px ;
2020 font-size: xx-small;
21- margin-top: 0.8vh;
21+ position: relative;
22+ margin-top: 1px;
2223 &:after {
2324 content: '⁝';
25+ position: absolute;
26+ top: 12px;
27+ font-size: large;
2428 color: ${ theme ( 'header.fg' ) } ;
2529 margin-left: 5px;
2630 }
@@ -35,6 +39,14 @@ export const Notification = styled.div`
3539 margin-top: 0.8vh;
3640`
3741
42+ export const StateIcon = styled ( ReactSVG ) `
43+ width: 12px;
44+ height: 100%;
45+ cursor: pointer;
46+ margin-right: 10px;
47+ margin-top: 1px;
48+ `
49+
3850export const HeaderIcon = styled ( ReactSVG ) `
3951 fill: ${ theme ( 'header.fg' ) } ;
4052 width: 20px;
You can’t perform that action at this time.
0 commit comments