Fix issue with mutability in component macro

This commit is contained in:
Jonathan Kelley committed 2024-01-15 23:57:10 -08:00
1 parent 8559984e9d
commit 98bd78de43
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;