mirror of
https://github.com/Unleash/unleash.git
synced 2025-07-02 01:17:58 +02:00
Last seen for toggles that have an old usage reported and no environment Closes: # [1-1276] (https://linear.app/unleash/issue/1-1276/last-seen-for-toggles-that-have-an-old-usage-reported-and-that-are)  Signed-off-by: andreas-unleash <andreas@getunleash.ai>
23 lines
661 B
TypeScript
23 lines
661 B
TypeScript
import React, { VFC } from 'react';
|
|
import { IFeatureToggleListItem } from 'interfaces/featureToggle';
|
|
import { FeatureEnvironmentSeen } from 'component/feature/FeatureView/FeatureEnvironmentSeen/FeatureEnvironmentSeen';
|
|
|
|
interface IFeatureSeenCellProps {
|
|
feature: IFeatureToggleListItem;
|
|
}
|
|
|
|
export const FeatureEnvironmentSeenCell: VFC<IFeatureSeenCellProps> = ({
|
|
feature,
|
|
}) => {
|
|
const environments = Boolean(feature.environments)
|
|
? Object.values(feature.environments)
|
|
: [];
|
|
|
|
return (
|
|
<FeatureEnvironmentSeen
|
|
featureLastSeen={feature.lastSeenAt}
|
|
environments={environments}
|
|
/>
|
|
);
|
|
};
|