mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-04 00:18:01 +01:00
504a4af274
* refactor: extract SegmentEmpty component * refactor: extract CreateSegmentButton component * refactor: extract EditSegmentButton component * refactor: extract RemoveSegmentButton component * refactor: normalize Created table header text * refactor: port segments list to react-table * fix: improve row text height in table row * fix: update test snapshots * refactor table cell with search highlight * fix: update after review Co-authored-by: Tymoteusz Czech <2625371+Tymek@users.noreply.github.com> Co-authored-by: Tymoteusz Czech <tymek+gpg@getunleash.ai>
18 lines
630 B
TypeScript
18 lines
630 B
TypeScript
import { ActionCell } from 'component/common/Table/cells/ActionCell/ActionCell';
|
|
import { ISegment } from 'interfaces/segment';
|
|
import { RemoveSegmentButton } from 'component/segments/RemoveSegmentButton/RemoveSegmentButton';
|
|
import { EditSegmentButton } from 'component/segments/EditSegmentButton/EditSegmentButton';
|
|
|
|
interface ISegmentActionCellProps {
|
|
segment: ISegment;
|
|
}
|
|
|
|
export const SegmentActionCell = ({ segment }: ISegmentActionCellProps) => {
|
|
return (
|
|
<ActionCell>
|
|
<EditSegmentButton segment={segment} />
|
|
<RemoveSegmentButton segment={segment} />
|
|
</ActionCell>
|
|
);
|
|
};
|