1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00
unleash.unleash/frontend/src/component/feature/FeatureView/FeatureLog/FeatureLog.tsx

24 lines
753 B
TypeScript
Raw Normal View History

2022-03-28 10:49:59 +02:00
import { useFeature } from 'hooks/api/getters/useFeature/useFeature';
import { useStyles } from './FeatureLog.styles';
2022-03-28 10:49:59 +02:00
import { FeatureEventHistory } from 'component/history/FeatureEventHistory/FeatureEventHistory';
import { useRequiredPathParam } from 'hooks/useRequiredPathParam';
const FeatureLog = () => {
const projectId = useRequiredPathParam('projectId');
const featureId = useRequiredPathParam('featureId');
const { classes: styles } = useStyles();
const { feature } = useFeature(projectId, featureId);
if (!feature.name) {
return null;
}
return (
<div className={styles.container}>
<FeatureEventHistory toggleName={feature.name} />
</div>
);
};
export default FeatureLog;