File tree Expand file tree Collapse file tree 5 files changed +34
-23
lines changed
views/__backoffice/partials Expand file tree Collapse file tree 5 files changed +34
-23
lines changed Original file line number Diff line number Diff line change 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 ;
Original file line number Diff line number Diff line change 11import loadable from '@loadable/component' ;
22
3+ export const GitHub = loadable ( ( ) => import ( './GitHub' ) ) ;
34export const LightbulbOff = loadable ( ( ) => import ( './LightbulbOff' ) ) ;
45export const LightbulbOn = loadable ( ( ) => import ( './LightbulbOn' ) ) ;
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ import {
4242import * as NavigationUtils from '../../../utils/Navigation' ;
4343import * as RandomUtils from '../../../utils/Random' ;
4444import {
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 } ,
Original file line number Diff line number Diff line change 2626 'send_link ' => 'Send Link ' ,
2727 'reset ' => 'Reset ' ,
2828
29+ 'github ' => 'GitHub Repository ' ,
30+
2931 'monitoring ' => 'Monitoring ' ,
3032
3133 'notifications ' => 'Notifications ' ,
Original file line number Diff line number Diff line change 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 ' ,
You can’t perform that action at this time.
0 commit comments