Open rumzledz opened 1 week ago
However, upon rendering, the modal flashes an error for a brief moment I'm honestly fine with this as it is, as we can always come back and polish this later down the line
No you're right @rdig , that's really "yuck" π I've pushed a fix to make it behave as intended -- pre-mounted so the logic/calculations are done already by the time the modal's isOpen
is set to true.
Pushed! π
Description
I found some time to refactor the
ActionSidebarContent
. I took out expenditure staking-specific logic and handled it in their respective forms instead.I create a new hook called
useShowCreateStakedExpenditureModal
which encapsulates logic for showing/hiding the expenditure modal. Basically, we're meant to show this modal for the following actions if the decision method is set toDecisionMethod.Staking
:For future reference, you can control the Action Form's primary button type and onClick props via the
useActionFormBaseHook
hook i.e.Testing
Resolves #3628