Skip to content

Commit

Permalink
feat: update logo (#401)
Browse files Browse the repository at this point in the history
* style: update logo

* feat: use both desktop and dashboard logo

* test: remove App.test

* build: fix depcheck
  • Loading branch information
Cafe137 authored Jun 20, 2022
1 parent 127d44f commit 36fc4bf
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 25 deletions.
1 change: 1 addition & 0 deletions .depcheckrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"ignores": [
"@testing-library/react",
"@types/*",
"@commitlint/config-conventional",
"@babel/*",
Expand Down
23 changes: 0 additions & 23 deletions src/App.test.tsx

This file was deleted.

File renamed without changes
11 changes: 11 additions & 0 deletions src/assets/desktop-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 5 additions & 2 deletions src/components/SideBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ import { OpenInNewSharp } from '@material-ui/icons'
import { ReactElement, useContext } from 'react'
import { BookOpen, Briefcase, DollarSign, FileText, Home, Settings } from 'react-feather'
import { Link } from 'react-router-dom'
import Logo from '../assets/logo.svg'
import DashboardLogo from '../assets/dashboard-logo.svg'
import DesktopLogo from '../assets/desktop-logo.svg'
import { config } from '../config'
import { useIsBeeDesktop } from '../hooks/apiHooks'
import { Context } from '../providers/Bee'
import { ROUTES } from '../routes'
import SideBarItem from './SideBarItem'
Expand Down Expand Up @@ -96,13 +98,14 @@ const useStyles = makeStyles((theme: Theme) =>
export default function SideBar(): ReactElement {
const classes = useStyles()
const { nodeInfo } = useContext(Context)
const { isBeeDesktop } = useIsBeeDesktop()

return (
<Drawer className={classes.drawer} variant="permanent" anchor="left" classes={{ paper: classes.drawerPaper }}>
<Grid container direction="column" justifyContent="space-between" className={classes.root}>
<Grid className={classes.logo}>
<Link to={ROUTES.INFO}>
<img alt="swarm" src={Logo} />
<img alt="swarm" src={isBeeDesktop ? DesktopLogo : DashboardLogo} />
</Link>
</Grid>
<Grid>
Expand Down

0 comments on commit 36fc4bf

Please sign in to comment.