feature: CellLinkacceptd children

This commit is contained in:
Sammy Teillet
2023-04-19 12:23:27 +02:00
parent 471d6743ad
commit 3696bf2617
2 changed files with 26 additions and 14 deletions

View File

@ -1,19 +1,15 @@
import * as React from 'react';
import { Link } from 'react-router-dom';
import CompanyChip from '../chips/CompanyChip';
type OwnProps = {
name: string;
picture?: string;
href: string;
children?: React.ReactNode;
};
function CellLink({ name, picture, href }: OwnProps) {
return (
<Link to={href}>
<CompanyChip name={name} picture={picture} />
</Link>
);
function CellLink({ href, children }: OwnProps) {
return <Link to={href}>{children}</Link>;
}
export default CellLink;