Updates to all card components.
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user