mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-28 17:55:15 +02:00
* refactor: fix child selector warnings * refactor: update react-router-dom * refactor: use BrowserRouter as in react-router docs * refactor: replace Redirect with Navigate * refactor: replace Switch with Routes * refactor: replace useHistory with useNavigate * refactor: replace useParams types with useRequiredPathParam * refactor: replace NavLink activeStyle with callback * refactor: fix matchPath arg order * refactor: Remove unused link state * refactor: delete broken snapshot test * refactor: render 404 page without redirect * refactor: normalize path parameter names * refactor: fix Route component usage
10 lines
347 B
TypeScript
10 lines
347 B
TypeScript
import React from 'react';
|
|
import { FeatureEventHistory } from '../FeatureEventHistory/FeatureEventHistory';
|
|
import { useRequiredPathParam } from 'hooks/useRequiredPathParam';
|
|
|
|
export const FeatureEventHistoryPage = () => {
|
|
const toggleName = useRequiredPathParam('toggleName');
|
|
|
|
return <FeatureEventHistory toggleName={toggleName} />;
|
|
};
|