From 1e47975dc87c5749930bbcf984fce7eda112e641 Mon Sep 17 00:00:00 2001 From: Youssef Date: Fri, 5 Nov 2021 10:14:52 +0100 Subject: [PATCH] use useProjects to check if project deleted or not --- .../FeatureToggleListItem/FeatureToggleListItem.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/component/feature/FeatureToggleList/FeatureToggleListItem/FeatureToggleListItem.jsx b/frontend/src/component/feature/FeatureToggleList/FeatureToggleListItem/FeatureToggleListItem.jsx index 549cd66826..f839695d36 100644 --- a/frontend/src/component/feature/FeatureToggleList/FeatureToggleListItem/FeatureToggleListItem.jsx +++ b/frontend/src/component/feature/FeatureToggleList/FeatureToggleListItem/FeatureToggleListItem.jsx @@ -17,6 +17,7 @@ import { useStyles } from './styles'; import { getTogglePath } from '../../../../utils/route-path-helpers'; import FeatureStatus from '../../FeatureView2/FeatureStatus/FeatureStatus'; import FeatureType from '../../FeatureView2/FeatureType/FeatureType'; +import useProjects from '../../../../hooks/api/getters/useProjects/useProjects'; const FeatureToggleListItem = ({ feature, @@ -31,11 +32,13 @@ const FeatureToggleListItem = ({ }) => { const styles = useStyles(); + // const {projects} = useProjects() const isArchive = !!revive; const { name, description, type, stale, createdAt, project, lastSeenAt } = feature; + // let obj = projects.find(project => project.id === 'projectId'); return ( revive(feature.name)}> + console.log('ho')}> }