@@ -13,17 +13,34 @@ import {faYoutube} from '@fortawesome/free-brands-svg-icons/faYoutube';
13
13
import usePortalContext from '~/contexts/portal' ;
14
14
import './footer.scss' ;
15
15
16
-
17
16
function Footer ( {
18
17
data : {
19
- supporters, copyright, apStatement,
20
- facebookLink, twitterLink, linkedinLink
18
+ supporters,
19
+ copyright,
20
+ apStatement,
21
+ facebookLink,
22
+ twitterLink,
23
+ linkedinLink
21
24
}
25
+ } : {
26
+ data : {
27
+ supporters : string ;
28
+ copyright : string ;
29
+ apStatement : string ;
30
+ facebookLink : string ;
31
+ twitterLink : string ;
32
+ linkedinLink : string ;
33
+ } ;
22
34
} ) {
23
35
const { rewriteLinks} = usePortalContext ( ) ;
24
36
25
- React . useLayoutEffect ( ( ) => rewriteLinks ?. ( document . querySelector ( '.page-footer' ) ) ,
26
- [ rewriteLinks ] ) ;
37
+ React . useLayoutEffect (
38
+ ( ) =>
39
+ rewriteLinks ?.(
40
+ document . querySelector ( '.page-footer' ) as HTMLElement
41
+ ) ,
42
+ [ rewriteLinks ]
43
+ ) ;
27
44
28
45
return (
29
46
< React . Fragment >
@@ -34,22 +51,28 @@ function Footer({
34
51
< h3 > Help</ h3 >
35
52
< ListOfLinks >
36
53
< a href = "/contact" > Contact Us</ a >
37
- < a href = "https://help.openstax.org/s/" > Support Center</ a >
54
+ < a href = "https://help.openstax.org/s/" >
55
+ Support Center
56
+ </ a >
38
57
< a href = "/faq" > FAQ</ a >
39
58
</ ListOfLinks >
40
59
</ div >
41
60
< div className = "column col2" >
42
61
< h3 > OpenStax</ h3 >
43
62
< ListOfLinks >
44
63
< a href = "/press" > Press</ a >
45
- < a href = "http://www2.openstax.org/l/218812/2016-10-04/lvk" > Newsletter</ a >
64
+ < a href = "http://www2.openstax.org/l/218812/2016-10-04/lvk" >
65
+ Newsletter
66
+ </ a >
46
67
< a href = "/careers" > Careers</ a >
47
68
</ ListOfLinks >
48
69
</ div >
49
70
< div className = "column col3" >
50
71
< h3 > Policies</ h3 >
51
72
< ListOfLinks >
52
- < a href = "/accessibility-statement" > Accessibility Statement</ a >
73
+ < a href = "/accessibility-statement" >
74
+ Accessibility Statement
75
+ </ a >
53
76
< a href = "/tos" > Terms of Use</ a >
54
77
< a href = "/license" > Licensing</ a >
55
78
< a href = "/privacy" > Privacy Notice</ a >
@@ -61,7 +84,10 @@ function Footer({
61
84
< div className = "bottom" >
62
85
< div className = "boxed" >
63
86
< div className = "copyrights" >
64
- < Copyright copyright = { copyright } apStatement = { apStatement } />
87
+ < Copyright
88
+ copyright = { copyright }
89
+ apStatement = { apStatement }
90
+ />
65
91
</ div >
66
92
< ul className = "social" >
67
93
< li >
0 commit comments