1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00
unleash.unleash/frontend/src/component/feature/FeatureView2/FeatureLog/FeatureLog.tsx
2021-10-29 21:14:38 +02:00

20 lines
663 B
TypeScript

import { useParams } from 'react-router';
import useFeature from '../../../../hooks/api/getters/useFeature/useFeature';
import { useStyles } from './FeatureLog.styles';
import { IFeatureViewParams } from '../../../../interfaces/params';
import HistoryComponent from '../../../history/FeatureEventHistory';
const FeatureLog = () => {
const styles = useStyles();
const { projectId, featureId } = useParams<IFeatureViewParams>();
const { feature } = useFeature(projectId, featureId);
return (
<div className={styles.container}>
<HistoryComponent toggleName={feature.name} />
</div>
);
};
export default FeatureLog;