feat: scholarship info page takes a scholarship id param
This commit is contained in:
1 parent
0ace17d28c
commit
86086f3388
4 files changed
+26
-12
No files matched your search
+5
-8
@@ -1,10 +1,7 @@
|
||||
use leptos::prelude::*;
|
||||
use leptos_meta::{provide_meta_context, MetaTags, Stylesheet, Title};
|
||||
use leptos_oidc::{Auth, AuthParameters, AuthSignal, Challenge};
|
||||
use leptos_router::{
|
||||
components::{Route, Router, Routes},
|
||||
StaticSegment,
|
||||
};
|
||||
use leptos_router::{components::{Route, Router, Routes}, path};
|
||||
use url::Url;
|
||||
|
||||
use crate::pages::{AboutPage, ComparisonTestPage, HomePage, ScholarshipInfoPage};
|
||||
@@ -65,10 +62,10 @@ pub fn App() -> impl IntoView {
|
||||
<main>
|
||||
// TODO Create a 404 page
|
||||
<Routes fallback=|| "Page not found.".into_view()>
|
||||
<Route path=StaticSegment("") view=HomePage />
|
||||
<Route path=StaticSegment("about") view=AboutPage />
|
||||
<Route path=StaticSegment("comparison") view=ComparisonTestPage />
|
||||
<Route path=StaticSegment("scholarship") view=ScholarshipInfoPage />
|
||||
<Route path=path!("") view=HomePage />
|
||||
<Route path=path!("about") view=AboutPage />
|
||||
<Route path=path!("comparison") view=ComparisonTestPage />
|
||||
<Route path=path!("scholarship/:id") view=ScholarshipInfoPage />
|
||||
</Routes>
|
||||
</main>
|
||||
</Router>
|
||||
|
||||
Reference in new issue
Block a user