Changed path prop to a default prop

This commit is contained in:
meraghon committed 2025-12-05 12:06:27 -05:00
1 parent e293f8beee
commit 779e4721af
1 file changed
+1 -1
+1 -1
View File
@@ -23,7 +23,7 @@ pub fn Banner(
#[prop(into)] #[prop(into)]
logo: String, logo: String,
/// The route that the navigates user to a page (home page). /// The route that the navigates user to a page (home page).
#[prop(into)] #[prop(into, default = String::from("/"))]
path: String, path: String,
) -> impl IntoView { ) -> impl IntoView {
let navigate = use_navigate(); let navigate = use_navigate();