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)]
|
#[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();
|
||||||
|
|||||||
Reference in new issue
Block a user