diff --git a/src/FilterLists.Web.V2/src/components/LicenseTag.tsx b/src/FilterLists.Web.V2/src/components/LicenseTag.tsx
index cd4a939ff..4f1c1b8f1 100644
--- a/src/FilterLists.Web.V2/src/components/LicenseTag.tsx
+++ b/src/FilterLists.Web.V2/src/components/LicenseTag.tsx
@@ -1,28 +1,33 @@
import { Tag } from 'antd';
import * as React from 'react';
-import { License } from '../interfaces/License';
-
interface Props {
- license: License;
+ name: string;
+ descriptionUrl: string;
showLabel?: boolean
};
export const LicenseTag = (props: Props) =>
- props.license && props.license.name
- ?
+ props.name
+ ? <>
{props.showLabel &&
License:
}
-
+
-
+ >
: null;
-const TagContents = (props: Props) =>
- props.license.descriptionUrl
- ?
- {props.license.name}
+interface TagContentsProps {
+ name: string;
+ descriptionUrl: string;
+};
+
+const TagContents = (props: TagContentsProps) =>
+ props.descriptionUrl
+ ?
+ {props.name}
: <>
- {props.license.name}
+ {props.name}
>;
\ No newline at end of file
diff --git a/src/FilterLists.Web.V2/src/components/LinkButton.tsx b/src/FilterLists.Web.V2/src/components/LinkButton.tsx
index 94d4da593..49f79c86c 100644
--- a/src/FilterLists.Web.V2/src/components/LinkButton.tsx
+++ b/src/FilterLists.Web.V2/src/components/LinkButton.tsx
@@ -11,13 +11,15 @@ interface Props {
};
export const LinkButton = (props: Props) =>
- ;
\ No newline at end of file
+ props.url && props.text
+ ?
+ : null;
\ No newline at end of file
diff --git a/src/FilterLists.Web.V2/src/components/ListInfoButton.tsx b/src/FilterLists.Web.V2/src/components/ListInfoButton.tsx
index 9dc45da48..041a79b06 100644
--- a/src/FilterLists.Web.V2/src/components/ListInfoButton.tsx
+++ b/src/FilterLists.Web.V2/src/components/ListInfoButton.tsx
@@ -3,18 +3,16 @@ import React from 'react';
import { RouteComponentProps } from 'react-router-dom';
import slugify from 'slugify';
-import { List } from '../interfaces/List';
-
interface Props {
- list: List;
+ listName: string;
};
export const ListInfoButton = (props: RouteComponentProps & Props) => {
- const listPath = `/lists/${slugify(props.list.name)}`;
+ const listPath = `/lists/${slugify(props.listName)}`;
return (