Add links to policies
Show links to terms of service and privacy policy on settings page
This commit is contained in:
@@ -1,9 +1,17 @@
|
|||||||
import React from 'react';
|
import React from "react";
|
||||||
|
import { Link } from "react-router-dom";
|
||||||
|
|
||||||
export default function Footer() {
|
export default function Footer(props) {
|
||||||
return (
|
return (
|
||||||
<footer>
|
<footer>
|
||||||
© Matthew Grove {new Date().getFullYear()}
|
<span>© Matthew Grove {new Date().getFullYear()}</span>
|
||||||
|
{
|
||||||
|
props.showTerms &&
|
||||||
|
<>
|
||||||
|
<Link to="/tos">Terms of service</Link>
|
||||||
|
<Link to="/privacy">Privacy policy</Link>
|
||||||
|
</>
|
||||||
|
}
|
||||||
</footer>
|
</footer>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import React, { Component } from 'react';
|
|||||||
import { HomeRounded as HomeRoundedIcon } from "@material-ui/icons";
|
import { HomeRounded as HomeRoundedIcon } from "@material-ui/icons";
|
||||||
import NavBar from "./NavBar";
|
import NavBar from "./NavBar";
|
||||||
import Button from "./Button";
|
import Button from "./Button";
|
||||||
import { withRouter } from "react-router-dom";
|
import { withRouter, Link } from "react-router-dom";
|
||||||
import SettingsContent from "./SettingsContent";
|
import SettingsContent from "./SettingsContent";
|
||||||
import Footer from "./Footer";
|
import Footer from "./Footer";
|
||||||
|
|
||||||
@@ -90,7 +90,7 @@ export default withRouter(class Settings extends Component {
|
|||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
<Footer />
|
<Footer showTerms={true} />
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user