mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
tidy InfoCard
This commit is contained in:
parent
898e37269d
commit
c20ebee973
1 changed files with 22 additions and 22 deletions
|
|
@ -26,25 +26,25 @@ interface IProps {
|
|||
updatedDate: string;
|
||||
};
|
||||
|
||||
export const InfoCard = (props: IProps) =>
|
||||
<div className="col-9">
|
||||
<TagGroup tags={props.tags}/>
|
||||
<div className="d-md-none">
|
||||
{props.syntax
|
||||
? props.syntax.supportedSoftware.map(
|
||||
(s: ISyntaxSupportedSoftware, i: number) => <a href={s.homeUrl} key={i}>
|
||||
<SoftwareIcon id={s.id} key={i}/>
|
||||
</a>)
|
||||
: null}
|
||||
</div>
|
||||
<Description {...props} url={props.descriptionSourceUrl}/>
|
||||
<ul className="list-group list-group-flush">
|
||||
<Languages languages={...props.languages}/>
|
||||
<RuleCount {...props}/>
|
||||
<DiscontinuedDate date={props.discontinuedDate}/>
|
||||
<UpdatedDate {...props}/>
|
||||
<PublishedDate date={props.publishedDate}/>
|
||||
<Syntax {...props.syntax}/>
|
||||
<License {...props.license}/>
|
||||
</ul>
|
||||
</div>;
|
||||
export const InfoCard = (props: IProps) =>
|
||||
<div className="col-9">
|
||||
<TagGroup tags={props.tags}/>
|
||||
<div className="d-md-none">
|
||||
{props.syntax
|
||||
? props.syntax.supportedSoftware.map(
|
||||
(s: ISyntaxSupportedSoftware, i: number) => <a href={s.homeUrl} key={i}>
|
||||
<SoftwareIcon id={s.id} key={i}/>
|
||||
</a>)
|
||||
: null}
|
||||
</div>
|
||||
<Description {...props} url={props.descriptionSourceUrl}/>
|
||||
<ul className="list-group list-group-flush">
|
||||
<Languages {...props}/>
|
||||
<RuleCount {...props}/>
|
||||
<DiscontinuedDate date={props.discontinuedDate}/>
|
||||
<UpdatedDate {...props}/>
|
||||
<PublishedDate date={props.publishedDate}/>
|
||||
<Syntax {...props.syntax}/>
|
||||
<License {...props.license}/>
|
||||
</ul>
|
||||
</div>;
|
||||
Loading…
Reference in a new issue