refactor: rename CellLink to ClickableCell
This commit is contained in:
15
front/src/components/table/ClickableCell.tsx
Normal file
15
front/src/components/table/ClickableCell.tsx
Normal file
@ -0,0 +1,15 @@
|
||||
import * as React from 'react';
|
||||
import { Link } from 'react-router-dom';
|
||||
|
||||
type OwnProps = {
|
||||
name: string;
|
||||
picture?: string;
|
||||
href: string;
|
||||
children?: React.ReactNode;
|
||||
};
|
||||
|
||||
function ClickableCell({ href, children }: OwnProps) {
|
||||
return <Link to={href}>{children}</Link>;
|
||||
}
|
||||
|
||||
export default ClickableCell;
|
||||
Reference in New Issue
Block a user