Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 3cd99f1

Browse files
committed
wip
1 parent 3e77b77 commit 3cd99f1

File tree

3 files changed

+23
-3
lines changed

3 files changed

+23
-3
lines changed

containers/Header/index.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import React from 'react'
88
import { inject, observer } from 'mobx-react'
99
import keydown from 'react-keydown'
10+
import { Row, Col } from 'antd'
1011

1112
// import Link from 'next/link'
1213
import { 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}>

containers/Header/styles/index.js

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,15 @@ export const Router = styled.div`
1616
`
1717

1818
export 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+
3850
export const HeaderIcon = styled(ReactSVG)`
3951
fill: ${theme('header.fg')};
4052
width: 20px;

static/nodeIcons/cmd/header_state.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)