Skip to content

Commit

Permalink
Add logo icon in webapp
Browse files Browse the repository at this point in the history
  • Loading branch information
lucalas committed Jun 6, 2021
1 parent 6f4de09 commit 121c5d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Binary file added StreamNode/WebClient/src/assets/icons/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion StreamNode/WebClient/src/components/sidebar/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { Component } from 'preact';
import { Layout, Menu } from 'antd';
import { Layout, Menu, Image, Row } from 'antd';
import { Link } from 'preact-router/match';
import { DesktopOutlined, BlockOutlined, CustomerServiceOutlined } from '@ant-design/icons';
import Logo from '../../assets/icons/logo.png';

//LANGUAGES
import languages from '../../data/languages.json'
Expand Down Expand Up @@ -33,6 +34,9 @@ class CustomSidebar extends Component {
if(!this.state.hideSidebar) {
return (
<Sider collapsible defaultCollapsed>
<Row type="flex" justify="center" align="middle">
<Image src={Logo} width={70} preview={false} style={{padding:7}}/>
</Row>
<Menu theme="dark" defaultSelectedKeys={['1']} mode="inline">
<Menu.Item key="1" icon={<DesktopOutlined />}>
<Link href="/">Dashboard</Link>
Expand Down

0 comments on commit 121c5d3

Please sign in to comment.