diff --git a/src/FilterLists.Web.V2/src/modules/allListsTable/AllListsTable.tsx b/src/FilterLists.Web.V2/src/modules/allListsTable/AllListsTable.tsx index 8f7298019..50ac3ae6e 100644 --- a/src/FilterLists.Web.V2/src/modules/allListsTable/AllListsTable.tsx +++ b/src/FilterLists.Web.V2/src/modules/allListsTable/AllListsTable.tsx @@ -1,6 +1,6 @@ import { Table } from 'antd'; import * as React from "react"; -import { SubscribeButton } from '../../shared'; +import { SubscribeButton, Description } from '../../shared'; import { nameof } from '../../utils'; import './AllListsTable.css'; import { List } from './List'; @@ -69,7 +69,7 @@ export class AllListsTable extends React.Component<{}, State> { title="Description" dataIndex={nameof("description")} - render={(text: string) =>
{text}
} /> + render={(text: string, record: List) => } /> title="Software" dataIndex={nameof("syntaxId")} diff --git a/src/FilterLists.Web.V2/src/shared/Description.tsx b/src/FilterLists.Web.V2/src/shared/Description.tsx new file mode 100644 index 000000000..ec7a2d3c4 --- /dev/null +++ b/src/FilterLists.Web.V2/src/shared/Description.tsx @@ -0,0 +1,11 @@ +import * as React from "react"; + +interface Props { + desription: string; + desriptionSourceUrl: string; +}; + +export const Description = (props: Props): JSX.Element | null => + props.desriptionSourceUrl + ?
{props.desription}
+ :

{props.desription}

; \ No newline at end of file diff --git a/src/FilterLists.Web.V2/src/shared/index.ts b/src/FilterLists.Web.V2/src/shared/index.ts index fc3bfe9e8..55147fbd6 100644 --- a/src/FilterLists.Web.V2/src/shared/index.ts +++ b/src/FilterLists.Web.V2/src/shared/index.ts @@ -1,3 +1,5 @@ import { SubscribeButton } from './buttons'; +import { Description } from './Description'; -export { SubscribeButton } \ No newline at end of file +export { SubscribeButton }; +export { Description };