mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
refactor(web): ♻ rm List DescriptionSourceUrl from ui
This commit is contained in:
parent
a9c4408d96
commit
73b8d72656
2 changed files with 2 additions and 13 deletions
|
|
@ -2,14 +2,6 @@ import React from "react";
|
|||
|
||||
interface Props {
|
||||
description: string;
|
||||
descriptionSourceUrl: string;
|
||||
}
|
||||
|
||||
export const Description = (props: Props) =>
|
||||
props.descriptionSourceUrl ? (
|
||||
<blockquote cite={props.descriptionSourceUrl}>
|
||||
{props.description}
|
||||
</blockquote>
|
||||
) : (
|
||||
<p>{props.description}</p>
|
||||
);
|
||||
export const Description = (props: Props) => <p>{props.description}</p>;
|
||||
|
|
|
|||
|
|
@ -63,10 +63,7 @@ export const ListInfoDrawer = (props: RouteComponentProps & Props) => {
|
|||
destroyOnClose={true}
|
||||
onClose={() => props.history.push("/")}
|
||||
>
|
||||
<Description
|
||||
description={props.list.description}
|
||||
descriptionSourceUrl={props.list.descriptionSourceUrl}
|
||||
/>
|
||||
<Description description={props.list.description} />
|
||||
<LanguageCloud languages={props.languages} showLabel={true} />
|
||||
<TagCloud tags={props.tags} showLabel={true} />
|
||||
{props.license && (
|
||||
|
|
|
|||
Loading…
Reference in a new issue