Added changes to load orphan visits and fixed tests

This commit is contained in:
Alejandro Celaya
2022-02-05 13:37:49 +01:00
parent 60929342fb
commit 8fbe6bb17d
10 changed files with 63 additions and 34 deletions

View File

@@ -7,10 +7,10 @@ import './HighlightCard.scss';
export interface HighlightCardProps {
title: string;
link?: string;
link?: string | false;
}
const buildExtraProps = (link?: string) => !link ? {} : { tag: Link, to: link };
const buildExtraProps = (link?: string | false) => !link ? {} : { tag: Link, to: link };
export const HighlightCard: FC<HighlightCardProps> = ({ children, title, link }) => (
<Card className="highlight-card" body {...buildExtraProps(link)}>