Changed path prop to a default prop
This commit is contained in:
1 parent
e293f8beee
commit
779e4721af
1 file changed
+1
-1
@@ -23,7 +23,7 @@ pub fn Banner(
|
||||
#[prop(into)]
|
||||
logo: String,
|
||||
/// The route that the navigates user to a page (home page).
|
||||
#[prop(into)]
|
||||
#[prop(into, default = String::from("/"))]
|
||||
path: String,
|
||||
) -> impl IntoView {
|
||||
let navigate = use_navigate();
|
||||
|
||||
Reference in new issue
Block a user