mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
20 lines
663 B
TypeScript
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;
|