mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-19 17:52:45 +02:00
* feat: add icon to custom strategies * feat: update feature toggle screen layout * strategy and constraints separators * style disabled envirnments * strategy constraint style * strategy drag and drop * feature env emtpy state * quick add strategy api * reorder strategies api integration * feature strategy header title * openapi update * style small chip component * fix comments after review * fix issues with strategy constraint operators * Revert "openapi update" This reverts commit 27e7651ebae26f61ca76ec910e1f209bae7f2955. * fix tooltip ref
24 lines
743 B
TypeScript
24 lines
743 B
TypeScript
import { useFeature } from 'hooks/api/getters/useFeature/useFeature';
|
|
import FeatureOverviewEnvironment from './FeatureOverviewEnvironment/FeatureOverviewEnvironment';
|
|
import { useRequiredPathParam } from 'hooks/useRequiredPathParam';
|
|
|
|
const FeatureOverviewEnvironments = () => {
|
|
const projectId = useRequiredPathParam('projectId');
|
|
const featureId = useRequiredPathParam('featureId');
|
|
const { feature } = useFeature(projectId, featureId);
|
|
|
|
if (!feature) return null;
|
|
|
|
const { environments } = feature;
|
|
|
|
return (
|
|
<>
|
|
{environments?.map(env => (
|
|
<FeatureOverviewEnvironment env={env} key={env.name} />
|
|
))}
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default FeatureOverviewEnvironments;
|