File tree Expand file tree Collapse file tree 4 files changed +62
-53
lines changed
assets/jss/material-dashboard-react/components Expand file tree Collapse file tree 4 files changed +62
-53
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ import { Theme } from '@material-ui/core/styles' ;
2
+ import { createStyles } from '@material-ui/styles' ;
3
+ import { defaultFont , container , primaryColor , grayColor } from '../../material-dashboard-react' ;
4
+
5
+ const footerStyle = ( theme : Theme ) =>
6
+ createStyles ( {
7
+ block : {
8
+ color : 'inherit' ,
9
+ padding : '15px' ,
10
+ textTransform : 'uppercase' ,
11
+ borderRadius : '3px' ,
12
+ textDecoration : 'none' ,
13
+ position : 'relative' ,
14
+ display : 'block' ,
15
+ ...defaultFont ,
16
+ fontWeight : 500 ,
17
+ fontSize : '12px' ,
18
+ } ,
19
+ left : {
20
+ float : 'left !important' as 'left' ,
21
+ display : 'block' ,
22
+ } ,
23
+ right : {
24
+ padding : '15px 0' ,
25
+ margin : '0' ,
26
+ fontSize : '14px' ,
27
+ float : 'right !important' as 'right' ,
28
+ } ,
29
+ footer : {
30
+ bottom : '0' ,
31
+ borderTop : `1px solid ${ grayColor [ 11 ] } ` ,
32
+ padding : '15px 0' ,
33
+ ...defaultFont ,
34
+ } ,
35
+ container : {
36
+ ...container ,
37
+ } ,
38
+ a : {
39
+ color : primaryColor [ 0 ] ,
40
+ textDecoration : 'none' ,
41
+ backgroundColor : 'transparent' ,
42
+ } ,
43
+ list : {
44
+ marginBottom : '0' ,
45
+ padding : '0' ,
46
+ marginTop : '0' ,
47
+ } ,
48
+ inlineBlock : {
49
+ display : 'inline-block' ,
50
+ padding : '0px' ,
51
+ width : 'auto' ,
52
+ } ,
53
+ } ) ;
54
+
55
+ export default footerStyle ;
Original file line number Diff line number Diff line change @@ -7,8 +7,9 @@ import { MarkGithubIcon } from '@primer/octicons-react';
7
7
8
8
const useStyles = makeStyles ( styles ) ;
9
9
10
- export default function Footer ( ) {
10
+ const Footer : React . FC = ( ) => {
11
11
const classes = useStyles ( ) ;
12
+
12
13
return (
13
14
< footer className = { classes . footer } >
14
15
< div className = { classes . container } >
@@ -27,9 +28,11 @@ export default function Footer() {
27
28
</ List >
28
29
</ div >
29
30
< p className = { classes . right } >
30
- < span > © { 1900 + new Date ( ) . getYear ( ) } GitProxy</ span >
31
+ < span > © { new Date ( ) . getFullYear ( ) } GitProxy</ span >
31
32
</ p >
32
33
</ div >
33
34
</ footer >
34
35
) ;
35
- }
36
+ } ;
37
+
38
+ export default Footer ;
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import Menu from '@material-ui/icons/Menu';
9
9
import DashboardNavbarLinks from './DashboardNavbarLinks' ;
10
10
import styles from '../../assets/jss/material-dashboard-react/components/headerStyle' ;
11
11
12
- const useStyles = makeStyles ( styles ) ;
12
+ const useStyles = makeStyles ( styles as any ) ;
13
13
14
14
interface Route {
15
15
component : any ;
You can’t perform that action at this time.
0 commit comments