mirror of
https://dev.azure.com/globalhealthx/EMR/_git/helix-engage
synced 2026-04-12 02:38:15 +00:00
chore: initial Untitled UI Vite scaffold with FontAwesome Pro
This commit is contained in:
16
src/providers/router-provider.tsx
Normal file
16
src/providers/router-provider.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
import { type PropsWithChildren } from "react";
|
||||
import { RouterProvider } from "react-aria-components";
|
||||
import { useNavigate } from "react-router";
|
||||
import type { NavigateOptions } from "react-router";
|
||||
|
||||
declare module "react-aria-components" {
|
||||
interface RouterConfig {
|
||||
routerOptions: NavigateOptions;
|
||||
}
|
||||
}
|
||||
|
||||
export const RouteProvider = ({ children }: PropsWithChildren) => {
|
||||
const navigate = useNavigate();
|
||||
|
||||
return <RouterProvider navigate={navigate}>{children}</RouterProvider>;
|
||||
};
|
||||
Reference in New Issue
Block a user