(domainId: string, domain: string)
| 224 | : check({ featureId: "domain-verification" }).allowed; |
| 225 | |
| 226 | const handleDeleteDomain = async (domainId: string, domain: string) => { |
| 227 | const exit = await doDeleteDomain({ |
| 228 | params: { domainId }, |
| 229 | reactivityKeys: orgDomainWriteKeys, |
| 230 | }); |
| 231 | trackEvent("org_domain_removed", { success: Exit.isSuccess(exit) }); |
| 232 | toast[Exit.isSuccess(exit) ? "success" : "error"]( |
| 233 | Exit.isSuccess(exit) ? `Removed ${domain}` : "Failed to remove domain", |
| 234 | ); |
| 235 | }; |
| 236 | |
| 237 | const handleAddDomain = async () => { |
| 238 | const exit = await doGetVerificationLink({ |
no test coverage detected