(redirectUrl: RedirectUrl)
| 79 | * }; |
| 80 | */ |
| 81 | const handleActionRequiringAuth = (redirectUrl: RedirectUrl) => { |
| 82 | if (!isAuthenticated) { |
| 83 | setShowAuthModal(true); |
| 84 | setRedirectUrl(redirectUrl); |
| 85 | throw new UserNotLoggedInError("User is not logged in"); |
| 86 | } |
| 87 | }; |
| 88 | |
| 89 | return ( |
| 90 | <> |
no outgoing calls
no test coverage detected