Auth and error handling components
This commit is contained in:
		| @@ -1,12 +1,16 @@ | ||||
| <Router AppAssembly="@typeof(App).Assembly"> | ||||
|     <Found Context="routeData"> | ||||
|         <RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)"/> | ||||
|         <FocusOnNavigate RouteData="@routeData" Selector="h1"/> | ||||
|     </Found> | ||||
|     <NotFound> | ||||
|         <PageTitle>Not found</PageTitle> | ||||
|         <LayoutView Layout="@typeof(MainLayout)"> | ||||
|             <p role="alert">Sorry, there's nothing at this address.</p> | ||||
|         </LayoutView> | ||||
|     </NotFound> | ||||
| </Router> | ||||
| @using BlazorWebAssemblyVisaApiClient.ErrorHandling | ||||
|  | ||||
| <GlobalErrorHandler > | ||||
|     <Router AppAssembly="@typeof(App).Assembly"> | ||||
|         <Found Context="routeData"> | ||||
|             <RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)"/> | ||||
|             <FocusOnNavigate RouteData="@routeData" Selector="h1"/> | ||||
|         </Found> | ||||
|         <NotFound> | ||||
|             <PageTitle>Not found</PageTitle> | ||||
|             <LayoutView Layout="@typeof(MainLayout)"> | ||||
|                 <p role="alert">Sorry, there's nothing at this address.</p> | ||||
|             </LayoutView> | ||||
|         </NotFound> | ||||
|     </Router> | ||||
| </GlobalErrorHandler> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user