Add TOS and Privacy url via config (#1300)

* add tos and privacy url via config

* typo

* readd condition

* param
This commit is contained in:
Colin Megill
2020-03-26 11:33:41 -04:00
committed by GitHub
parent 91e17e64a5
commit adf7010f50
2 changed files with 19 additions and 3 deletions
+11 -1
View File
@@ -3,7 +3,7 @@ import React from "react";
import { Button, Popover, Menu, MenuItem, Position } from "@blueprintjs/core";
function InformationMenu(props) {
const { libraryVersions, aboutLink } = props;
const { libraryVersions, aboutLink, tosURL, privacyURL } = props;
return (
<div style={{}} className="bp3-button-group">
<Popover
@@ -47,6 +47,16 @@ function InformationMenu(props) {
}`}
/>
<MenuItem text="MIT License" />
{tosURL ? <MenuItem
href={tosURL}
target="_blank"
text="Terms of Service"
/> : null }
{privacyURL ? <MenuItem
href={privacyURL}
target="_blank"
text="Privacy Policy"
/> : null }
</Menu>
}
position={Position.BOTTOM_RIGHT}