From beafd31cabdaefe133910d37e8aecc1fe1dda5a8 Mon Sep 17 00:00:00 2001 From: Meeeeow Date: Mon, 10 Jul 2017 01:31:18 +0800 Subject: [PATCH] refactor: :hammer: add home page link to logo in the header --- src/webui/src/components/Header/index.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/webui/src/components/Header/index.js b/src/webui/src/components/Header/index.js index 9ec1c28b3..6c5ef8d6d 100644 --- a/src/webui/src/components/Header/index.js +++ b/src/webui/src/components/Header/index.js @@ -1,9 +1,10 @@ import React from 'react'; -import {Button, Dialog, Input, MessageBox} from 'element-react'; +import { Button, Dialog, Input, MessageBox } from 'element-react'; import styled from 'styled-components'; import API from '../../../utils/api'; import storage from '../../../utils/storage'; import _ from 'lodash'; +import { Link } from 'react-router-dom'; import classes from './header.scss'; @@ -97,7 +98,7 @@ export default class Header extends React.Component { renderUserActionButton () { if (!this.isTokenExpire) { // TODO: Check jwt token expire return ( -
+
Hi, {storage.getItem('username')}   @@ -112,7 +113,9 @@ export default class Header extends React.Component { return (
- + + + npm set registry { location.origin }