feat: implement back button for banner

This button is intended to bring the user all the way back to the specified dashboard. Another could be created to exit the form, but I don't think that's needed for now.
This commit is contained in:
alphafetus committed 2026-01-16 20:27:01 -05:00
1 parent ce05be8c02
commit 0c00c59162
6 files changed
+248 -9

No files matched your search

+1 -1
View File
@@ -148,7 +148,7 @@ pub fn ProviderContactPage() -> impl IntoView {
// Display contact form.
view! {
<Banner title="R15 Scholarships" logo="/PHS_Stacked_Acronym.png" path="/" />
<Banner title="R15 Scholarships" logo="/PHS_Stacked_Acronym.png" path="/providers" />
<AuthLoaded fallback=Loading>
<Authenticated unauthenticated=UnauthenticatedPage>
<Suspense fallback=Loading>
+1 -1
View File
@@ -20,7 +20,7 @@ pub fn ProviderPortal() -> impl IntoView {
});
view! {
<Banner title="Provider Dashboard" logo="PHS_Stacked_Acronym.png" path="/" />
<Banner title="Provider Dashboard" logo="PHS_Stacked_Acronym.png" />
<AuthLoaded fallback=Loading>
<Authenticated unauthenticated=UnauthenticatedPage>
<div class="mx-auto px-6">
+1 -1
View File
@@ -40,7 +40,7 @@ pub fn ScholarshipInfoPage() -> impl IntoView {
// Remember that we only want to show the page after we've got authentication information
// and if there's data for us to use.
view! {
<Banner title="R15 Scholarships" logo="/PHS_Stacked_Acronym.png" path="/" />
<Banner title="R15 Scholarships" logo="/PHS_Stacked_Acronym.png" path="/providers" />
<ToastList>
<AuthLoaded fallback=Loading>
<Authenticated unauthenticated=UnauthenticatedPage>