Skip to content

Commit ed25454

Browse files
foxbit19jmattheis
authored andcommitted
Set main page link and add GitHub icon (#234)
Fixes #159
1 parent 6edfd84 commit ed25454

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
lines changed

ui/src/layout/Header.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import Chat from '@material-ui/icons/Chat';
99
import DevicesOther from '@material-ui/icons/DevicesOther';
1010
import ExitToApp from '@material-ui/icons/ExitToApp';
1111
import Highlight from '@material-ui/icons/Highlight';
12+
import GitHubIcon from '@material-ui/icons/GitHub';
1213
import Apps from '@material-ui/icons/Apps';
1314
import SupervisorAccount from '@material-ui/icons/SupervisorAccount';
1415
import React, {Component, CSSProperties} from 'react';
@@ -55,11 +56,11 @@ class Header extends Component<IProps> {
5556
<AppBar position="absolute" style={style} className={classes.appBar}>
5657
<Toolbar>
5758
<div className={classes.title}>
58-
<a href="https://github.com/gotify/server" className={classes.link}>
59+
<Link to="/" className={classes.link}>
5960
<Typography variant="h5" className={classes.titleName} color="inherit">
6061
Gotify
6162
</Typography>
62-
</a>
63+
</Link>
6364
<a
6465
href={'https://github.com/gotify/server/releases/tag/v' + version}
6566
className={classes.link}>
@@ -72,6 +73,12 @@ class Header extends Component<IProps> {
7273
<IconButton onClick={toggleTheme} color="inherit">
7374
<Highlight />
7475
</IconButton>
76+
77+
<a href="https://github.com/gotify/server" className={classes.link}>
78+
<IconButton color="inherit">
79+
<GitHubIcon />
80+
</IconButton>
81+
</a>
7582
</Toolbar>
7683
</AppBar>
7784
);

ui/yarn.lock

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -763,13 +763,20 @@
763763
dependencies:
764764
regenerator-runtime "^0.13.2"
765765

766-
"@babel/runtime@^7.1.2", "@babel/runtime@^7.3.1", "@babel/runtime@^7.4.4", "@babel/runtime@^7.5.5":
766+
"@babel/runtime@^7.1.2", "@babel/runtime@^7.3.1", "@babel/runtime@^7.5.5":
767767
version "7.6.2"
768768
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.6.2.tgz#c3d6e41b304ef10dcf13777a33e7694ec4a9a6dd"
769769
integrity sha512-EXxN64agfUqqIGeEjI5dL5z0Sw0ZwWo1mLTi4mQowCZ42O59b7DRpZAnTC6OqdF28wMBMFKNb/4uFGrVaigSpg==
770770
dependencies:
771771
regenerator-runtime "^0.13.2"
772772

773+
"@babel/runtime@^7.4.4":
774+
version "7.6.3"
775+
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.6.3.tgz#935122c74c73d2240cafd32ddb5fc2a6cd35cf1f"
776+
integrity sha512-kq6anf9JGjW8Nt5rYfEuGRaEAaH1mkv3Bbu6rYvLOpPh/RusSJXuKPEAoZ7L7gybZkchE8+NV5g9vKF4AGAtsA==
777+
dependencies:
778+
regenerator-runtime "^0.13.2"
779+
773780
"@babel/template@^7.1.0", "@babel/template@^7.4.0", "@babel/template@^7.4.4":
774781
version "7.4.4"
775782
resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.4.4.tgz#f4b88d1225689a08f5bc3a17483545be9e4ed237"
@@ -1028,9 +1035,9 @@
10281035
react-transition-group "^4.3.0"
10291036

10301037
"@material-ui/icons@^4.4.3":
1031-
version "4.4.3"
1032-
resolved "https://registry.yarnpkg.com/@material-ui/icons/-/icons-4.4.3.tgz#5d4346ddbb2673a1b57ebc78fd6d50bcd88711db"
1033-
integrity sha512-HVVvUyc/78kmaBd93LkfWyGkXMM+zOMKzUfulWXxaV/fFAZ3N0pD0oHjWUd94zrOoF3tZP9JC7EPlIpIcZSNow==
1038+
version "4.5.1"
1039+
resolved "https://registry.yarnpkg.com/@material-ui/icons/-/icons-4.5.1.tgz#6963bad139e938702ece85ca43067688018f04f8"
1040+
integrity sha512-YZ/BgJbXX4a0gOuKWb30mBaHaoXRqPanlePam83JQPZ/y4kl+3aW0Wv9tlR70hB5EGAkEJGW5m4ktJwMgxQAeA==
10341041
dependencies:
10351042
"@babel/runtime" "^7.4.4"
10361043

0 commit comments

Comments
 (0)