Refactored dependencies from App component (#3763)
* Refactored PageTitle to remove a dependency to location from App component * Refactored DefaultHomePage and DefaultPageTitle to remove dependencies from App component.
This commit is contained in:
9
packages/twenty-front/src/pages/DefaultHomePage.tsx
Normal file
9
packages/twenty-front/src/pages/DefaultHomePage.tsx
Normal file
@ -0,0 +1,9 @@
|
||||
import { Navigate } from 'react-router-dom';
|
||||
|
||||
import { useDefaultHomePagePath } from '~/hooks/useDefaultHomePagePath';
|
||||
|
||||
export const DefaultHomePage = () => {
|
||||
const { defaultHomePagePath } = useDefaultHomePagePath();
|
||||
|
||||
return <Navigate to={defaultHomePagePath} />;
|
||||
};
|
||||
Reference in New Issue
Block a user