fix(settings): make SettingFormModal own its title and label strings #149
Loading…
Reference in a new issue
No description provided.
Delete branch "chore/checks-workflow-80f008f1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The check.yml workflow failed to compile src/pages/settings.rs. The
SettingFormModal props typed
titleandcreate_labelas&'static str,but the rsx call sites pass the
titlethrough anif/elsethat the rsxmacro materializes into an owned
String, yielding "expected&str, foundString". Every other component in the crate types these props asString,so this aligns the modal with that convention and lets the call sites pass
both literals and conditionals unchanged.
Also fix an E0597 in
use_is_admin: theauth.read()guard was the block'stail expression, so its temporary outlived the
authbinding it borrows.Binding the guard to a named local drops it before
auth, leaving the tailexpression a plain
bool.#MAPPS-171
Pull request closed