mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
parent
dade89d8c2
commit
b5fec0ee65
1 changed files with 11 additions and 1 deletions
|
|
@ -50,7 +50,8 @@ export default class ListDetailsModal extends React.Component<any, any> {
|
|||
function FilterListDetails(props: any) {
|
||||
return <div>
|
||||
<Name name={props.details.name}/>
|
||||
<Description description={props.details.description} url={props.details.descriptionSourceUrl}/>
|
||||
<Description description={props.details.description} url={props.details.descriptionSourceUrl} />
|
||||
<Languages languages={props.details.languages} />
|
||||
<PublishedDate date={props.details.publishedDate}/>
|
||||
<DiscontinuedDate date={props.details.discontinuedDate}/>
|
||||
<SubscribeUrl url={props.details.viewUrl} name={props.details.name}/>
|
||||
|
|
@ -77,6 +78,14 @@ function Description(props: any) {
|
|||
: null;
|
||||
}
|
||||
|
||||
function Languages(props: any) {
|
||||
return props.languages.length > 0
|
||||
? props.languages.length > 1
|
||||
? <p>Languages: {props.languages.join(", ")}</p>
|
||||
: <p>Language: {props.languages.join(", ")}</p>
|
||||
: null;
|
||||
}
|
||||
|
||||
function PublishedDate(props: any) {
|
||||
return props.date ? <p>Published: {props.date}</p> : null;
|
||||
}
|
||||
|
|
@ -164,6 +173,7 @@ interface IFilterListDetailsDto {
|
|||
forumUrl: string;
|
||||
homeUrl: string;
|
||||
issuesUrl: string;
|
||||
languages: string[];
|
||||
name: string;
|
||||
policyUrl: string;
|
||||
publishedDate: string;
|
||||
|
|
|
|||
Loading…
Reference in a new issue