feat(web): show onionUrl if exists in info drawer

ref #697
This commit is contained in:
Collin M. Barrett 2020-09-12 14:22:34 -05:00
parent 77e87a2f15
commit 51a53b3869

View file

@ -6,6 +6,7 @@ import {
FileExclamationOutlined,
FormOutlined,
GithubOutlined,
GlobalOutlined,
HomeOutlined,
MailOutlined,
MessageOutlined,
@ -120,6 +121,12 @@ export const ListInfoDrawer = (props: RouteComponentProps & Props) => {
title={`View ${list.name}'s homepage.`}
icon={<HomeOutlined />}
/>
<LinkButton
url={list.onionUrl}
text="Onion (Tor)"
title={`View ${list.name}'s onion/tor homepage.`}
icon={<GlobalOutlined />}
/>
<LinkButton
url={list.policyUrl}
text="Policy"