* Refactored PageTitle to remove a dependency to location from App component * Refactored DefaultHomePage and DefaultPageTitle to remove dependencies from App component.
10 lines
271 B
TypeScript
10 lines
271 B
TypeScript
import { Navigate } from 'react-router-dom';
|
|
|
|
import { useDefaultHomePagePath } from '~/hooks/useDefaultHomePagePath';
|
|
|
|
export const DefaultHomePage = () => {
|
|
const { defaultHomePagePath } = useDefaultHomePagePath();
|
|
|
|
return <Navigate to={defaultHomePagePath} />;
|
|
};
|