Browse Source

feat(partnership): Introduce hook for agreement (#63041)

Agreement should be a getsentry component so moving it there. This only
defines the type which I need merged before
https://github.com/getsentry/getsentry/pull/12593
Athena Moghaddam 1 year ago
parent
commit
cfe1e24dc9
1 changed files with 8 additions and 0 deletions
  1. 8 0
      static/app/types/hooks.tsx

+ 8 - 0
static/app/types/hooks.tsx

@@ -156,6 +156,13 @@ type MonitorCreatedCallback = (organization: Organization) => void;
 type SentryLogoProps = SVGIconProps & {
   pride?: boolean;
 };
+export type ParntershipAgreementType = 'standard' | 'partner_presence';
+type PartnershipAgreementProps = {
+  agreements: Array<ParntershipAgreementType>,
+  partnerDisplayName: string,
+  onSubmitSuccess?: () => void;
+};
+
 /**
  * Component wrapping hooks
  */
@@ -180,6 +187,7 @@ export type ComponentHooks = {
   'component:monitor-status-toggle': () => React.ComponentType<StatusToggleButtonProps>;
   'component:org-stats-banner': () => React.ComponentType<DashboardHeadersProps>;
   'component:organization-header': () => React.ComponentType<OrganizationHeaderProps>;
+  'component:partnership-agreement': React.ComponentType<PartnershipAgreementProps>,
   'component:product-selection-availability': () => React.ComponentType<ProductSelectionAvailabilityProps>;
   'component:product-unavailable-cta': () => React.ComponentType<ProductUnavailableCTAProps>;
   'component:profiling-am1-or-mmx-upgrade': () => React.ComponentType<ProfilingAM1OrMMXUpgradeProps>;