1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-10-04 11:17:02 +02:00
unleash.unleash/frontend/src/component/common/Table/cells/FeatureNameCell/FeatureNameCell.tsx
Tymoteusz Czech 9522c59674 Refactor project health table (#1098)
* minor archive table updates

* archived date cell

* archive import paths

* move project health table files

* fix: align actions cells

* simplify health table row mapping

* fix project pages browser tab title

* initial draft of virtualized table component

* refactor: virtualized table common component

* fix: health report name cell width

* refactor: report cell paths
2022-06-21 09:08:37 +02:00

21 lines
534 B
TypeScript

import { VFC } from 'react';
import { LinkCell } from 'component/common/Table/cells/LinkCell/LinkCell';
interface IFeatureNameCellProps {
row: {
original: {
name: string;
description: string;
project: string;
};
};
}
export const FeatureNameCell: VFC<IFeatureNameCellProps> = ({ row }) => (
<LinkCell
title={row.original.name}
subtitle={row.original.description}
to={`/projects/${row.original.project}/features/${row.original.name}`}
/>
);