Fix issue with mutability in component macro
This commit is contained in:
5 files changed
+47
-22
No files matched your search
@@ -57,7 +57,7 @@ pub struct HistoryButtonProps {
|
||||
#[component]
|
||||
pub fn GoBackButton(
|
||||
/// The props...
|
||||
props: HistoryButtonProps,
|
||||
mut props: HistoryButtonProps,
|
||||
) -> Element {
|
||||
let HistoryButtonProps { children } = props;
|
||||
|
||||
@@ -127,7 +127,7 @@ pub fn GoBackButton(
|
||||
#[component]
|
||||
pub fn GoForwardButton(
|
||||
/// Props...
|
||||
props: HistoryButtonProps,
|
||||
mut props: HistoryButtonProps,
|
||||
) -> Element {
|
||||
let HistoryButtonProps { children } = props;
|
||||
|
||||
|
||||
Reference in new issue
Block a user