1- import { Container , Nav } from 'react-bootstrap' ;
2- import { Link } from 'react-router-dom' ;
3- import { useDarkMode } from './contexts/DarkModeContext' ;
1+ import React from 'react' ;
2+ import { Container , Box , Link as MuiLink } from '@mui/material' ;
3+ import { Link as RouterLink } from 'react-router-dom' ;
4+ import { useTheme } from '@mui/material/styles' ;
45
56function Footer ( ) {
6-
7- const { modeClasses } = useDarkMode ( ) ;
7+ const theme = useTheme ( ) ;
88
99 return (
10- < Container as = "footer" fluid
11- className = { `mt-auto py-3 ${ modeClasses . bgClass } ${ modeClasses . textClass } ` } >
12- < Nav className = "justify-content-center" >
13- < Nav . Item >
14- < Nav . Link as = { Link } to = "/privacy-policy"
15- className = { `${ modeClasses . textClass } ` } > Privacy Policy</ Nav . Link >
16- </ Nav . Item >
17- < Nav . Item className = "align-self-center" >
18- < span className = { `${ modeClasses . textClass } ` } > | </ span >
19- </ Nav . Item >
20- < Nav . Item >
21- < Nav . Link as = { Link } to = "/terms-of-service"
22- className = { `${ modeClasses . textClass } ` } > Terms of Service</ Nav . Link >
23- </ Nav . Item >
24- </ Nav >
10+ < Container
11+ component = "footer"
12+ maxWidth = { false }
13+ sx = { {
14+ mt : 'auto' ,
15+ py : 3 ,
16+ backgroundColor : theme . palette . background . paper ,
17+ color : theme . palette . text . primary ,
18+ } }
19+ >
20+ < Box
21+ display = "flex"
22+ justifyContent = "center"
23+ alignItems = "center"
24+ sx = { { '& a' : { textDecoration : 'none' } } }
25+ role = "navigation"
26+ aria-label = "Footer Navigation"
27+ >
28+ < MuiLink
29+ component = { RouterLink }
30+ to = "/privacy-policy"
31+ color = "inherit"
32+ sx = { { mr : 1 } }
33+ aria-label = "Privacy Policy"
34+ >
35+ Privacy Policy
36+ </ MuiLink >
37+ < Box component = "span" sx = { { mx : 1 } } aria-hidden = "true" > |</ Box >
38+ < MuiLink
39+ component = { RouterLink }
40+ to = "/terms-of-service"
41+ color = "inherit"
42+ sx = { { ml : 1 } }
43+ aria-label = "Terms of Service"
44+ >
45+ Terms of Service
46+ </ MuiLink >
47+ </ Box >
2548 </ Container >
2649 ) ;
2750}
2851
29- export default Footer ;
52+ export default Footer ;
0 commit comments