Skip to content

Commit 3e4dd64

Browse files
author
Jovert Lota Palonpon
committed
Updated GitHub link
1 parent 0463e7f commit 3e4dd64

File tree

5 files changed

+34
-23
lines changed

5 files changed

+34
-23
lines changed

resources/js/icons/1x1/GitHub.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import React from 'react';
2+
import { SvgIcon } from '@material-ui/core';
3+
4+
const GitHub = props => (
5+
<SvgIcon {...props} viewBox="0 0 24 24">
6+
<path d="M12 .3a12 12 0 0 0-3.8 23.4c.6.1.8-.3.8-.6v-2c-3.3.7-4-1.6-4-1.6-.6-1.4-1.4-1.8-1.4-1.8-1-.7.1-.7.1-.7 1.2 0 1.9 1.2 1.9 1.2 1 1.8 2.8 1.3 3.5 1 0-.8.4-1.3.7-1.6-2.7-.3-5.5-1.3-5.5-6 0-1.2.5-2.3 1.3-3.1-.2-.4-.6-1.6 0-3.2 0 0 1-.3 3.4 1.2a11.5 11.5 0 0 1 6 0c2.3-1.5 3.3-1.2 3.3-1.2.6 1.6.2 2.8 0 3.2.9.8 1.3 1.9 1.3 3.2 0 4.6-2.8 5.6-5.5 5.9.5.4.9 1 .9 2.2v3.3c0 .3.1.7.8.6A12 12 0 0 0 12 .3" />
7+
</SvgIcon>
8+
);
9+
10+
export default GitHub;

resources/js/icons/1x1/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import loadable from '@loadable/component';
22

3+
export const GitHub = loadable(() => import('./GitHub'));
34
export const LightbulbOff = loadable(() => import('./LightbulbOff'));
45
export const LightbulbOn = loadable(() => import('./LightbulbOn'));

resources/js/views/__backoffice/partials/Header.js

Lines changed: 19 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ import {
4242
import * as NavigationUtils from '../../../utils/Navigation';
4343
import * as RandomUtils from '../../../utils/Random';
4444
import {
45+
GitHub as GitHubIcon,
4546
LightbulbOff as LightbulbOffIcon,
4647
LightbulbOn as LightbulbOnIcon,
4748
} from '../../../icons/1x1';
@@ -333,12 +334,14 @@ const Header = props => {
333334
<Grid item xs />
334335

335336
<Grid item>
336-
<Skeleton
337-
{...skeletonProps}
338-
height={20}
339-
width={70}
340-
className={classes.link}
341-
/>
337+
<IconButton color="inherit">
338+
<Skeleton
339+
{...skeletonProps}
340+
circle
341+
height={25}
342+
width={25}
343+
/>
344+
</IconButton>
342345
</Grid>
343346

344347
<Grid item>
@@ -525,15 +528,16 @@ const Header = props => {
525528
<Grid item xs />
526529

527530
<Grid item>
528-
<Typography
529-
className={classes.link}
530-
component="a"
531-
href="https://github.com/palonponjovertlota/lra"
532-
target="_blank"
533-
rel="noreferrer"
534-
>
535-
Github Link
536-
</Typography>
531+
<Tooltip title={Lang.get('navigation.github')}>
532+
<IconButton
533+
href="https://github.com/palonponjovertlota/lra"
534+
target="_blank"
535+
rel="noreferrer"
536+
color="inherit"
537+
>
538+
<GitHubIcon />
539+
</IconButton>
540+
</Tooltip>
537541
</Grid>
538542

539543
{monitoringEnabled && (
@@ -771,14 +775,6 @@ const styles = theme => ({
771775
padding: 4,
772776
},
773777

774-
link: {
775-
textDecoration: 'none',
776-
color: lightColor,
777-
'&:hover': {
778-
color: theme.palette.common.white,
779-
},
780-
},
781-
782778
button: {
783779
borderColor: lightColor,
784780
},

resources/lang/en/navigation.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
'send_link' => 'Send Link',
2727
'reset' => 'Reset',
2828

29+
'github' => 'GitHub Repository',
30+
2931
'monitoring' => 'Monitoring',
3032

3133
'notifications' => 'Notifications',

resources/lang/fil/navigation.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
'send_link' => 'I-send ang Link',
2727
'reset' => 'I-reset',
2828

29+
'github' => 'Repository sa GitHub',
30+
2931
'monitoring' => 'Pagsubaybay',
3032

3133
'notifications' => 'Mga Abiso',

0 commit comments

Comments
 (0)