Today, SIWEPanel takes a single onClose that gets called in two scenarios:
- The user has closed the bottom sheet, and its dismissal animation is beginning
- The dismissal animation has completed
In the case of FullscreenSIWEPanel (the only existing usage), we don't distinguish between these two because we need to animate back to the prompt screen anyways. We want to start that animation as soon as possible, and can defer the "unrender" of SIWEPanel until that animation completes.
However, in the upcoming new usage for the ConnectEthereum screen, we don't have any need for a secondary animation like that. We can't "unrender" SIWEPanel until the primary animation has completed, and so our options are to either sleep for some time (bad), or to separate these two callbacks (better).