mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-28 17:55:15 +02:00
24 lines
752 B
TypeScript
24 lines
752 B
TypeScript
import { useFeature } from 'hooks/api/getters/useFeature/useFeature';
|
|
import { useStyles } from './FeatureLog.styles';
|
|
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 featureId={feature.name} />
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default FeatureLog;
|