Updates to all card components.

This commit is contained in:
Patrick Fic
2020-01-09 15:27:40 -08:00
parent e3357910b9
commit dbe4f47539
46 changed files with 1135 additions and 112 deletions

View File

@@ -1,11 +1,15 @@
import React from "react";
import { Card } from "antd";
import { Link } from "react-router-dom";
export default function JobDetailCardTemplate({
loading,
title,
extraLink,
...otherProps
}) {
let extra;
if (extraLink) extra = { extra: <Link to={extraLink} >More</Link> };
return (
<Card
size="small"
@@ -13,6 +17,7 @@ export default function JobDetailCardTemplate({
className="job-card"
title={title}
loading={loading}
{...extra}
>
{otherProps.children}
</Card>