File size: 1,049 Bytes
3418204
 
d03b156
 
 
 
 
 
 
3418204
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<CascadingAuthenticationState>
    <Router AppAssembly="typeof(Program).Assembly">
        <Navigating>
            <LayoutView Layout="typeof(Layout.MainLayout)">
                <div class="surface-panel mx-auto flex min-h-64 w-full max-w-3xl items-center justify-center p-8 text-sm font-semibold text-slate-500 dark:text-slate-300">
                    Loading page...
                </div>
            </LayoutView>
        </Navigating>
        <Found Context="routeData">
            <AuthorizeRouteView RouteData="routeData" DefaultLayout="typeof(Layout.MainLayout)">
                <NotAuthorized>
                    <RedirectToLogin />
                </NotAuthorized>
            </AuthorizeRouteView>
            <FocusOnNavigate RouteData="routeData" Selector="h1" />
        </Found>
        <NotFound>
            <LayoutView Layout="typeof(Layout.MainLayout)">
                <p class="p-8 text-center text-slate-500">Page not found.</p>
            </LayoutView>
        </NotFound>
    </Router>
</CascadingAuthenticationState>