From 4e1634ca659cbed2d762a2650d8c89b70fffb5d8 Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Sat, 29 Aug 2020 14:59:34 -0500 Subject: [PATCH] =?UTF-8?q?refactor(web):=20=E2=99=BB=20ren=20License=20Ur?= =?UTF-8?q?l?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/LicenseTag.tsx | 8 ++++---- web/src/components/listInfoDrawer/ListInfoDrawer.tsx | 2 +- web/src/components/listsTable/ListsTable.tsx | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/web/src/components/LicenseTag.tsx b/web/src/components/LicenseTag.tsx index 8beb0e554..c7776d322 100644 --- a/web/src/components/LicenseTag.tsx +++ b/web/src/components/LicenseTag.tsx @@ -3,7 +3,7 @@ import * as React from "react"; interface Props { name: string; - descriptionUrl?: string; + url?: string; showLabel?: boolean; } @@ -12,15 +12,15 @@ export const LicenseTag = (props: Props) => {props.showLabel &&

License:

} - +
) : null; const TagContents = (props: Props) => - props.descriptionUrl ? ( + props.url ? ( { {props.license && ( )} diff --git a/web/src/components/listsTable/ListsTable.tsx b/web/src/components/listsTable/ListsTable.tsx index 9625dac63..f6c8d01ab 100644 --- a/web/src/components/listsTable/ListsTable.tsx +++ b/web/src/components/listsTable/ListsTable.tsx @@ -374,7 +374,7 @@ export const ListsTable = (props: RouteComponentProps & Props) => { return license ? ( ) : null;