Browse Source

feat(partnerships): adding org slug to agreement component (#63156)

org slug is a path param for the api
Athena Moghaddam 1 year ago
parent
commit
1f33aea1ca
2 changed files with 3 additions and 1 deletions
  1. 2 1
      static/app/types/hooks.tsx
  2. 1 0
      static/app/views/app/index.tsx

+ 2 - 1
static/app/types/hooks.tsx

@@ -157,10 +157,11 @@ type SentryLogoProps = SVGIconProps & {
   pride?: boolean;
 };
 export type ParntershipAgreementType = 'standard' | 'partner_presence';
-type PartnershipAgreementProps = {
+export type PartnershipAgreementProps = {
   agreements: Array<ParntershipAgreementType>;
   partnerDisplayName: string;
   onSubmitSuccess?: () => void;
+  organizationSlug?: string;
 };
 
 /**

+ 1 - 0
static/app/views/app/index.tsx

@@ -185,6 +185,7 @@ function App({children, params}: Props) {
             partnerDisplayName={partnershipAgreementPrompt.partnerDisplayName}
             agreements={partnershipAgreementPrompt.agreements}
             onSubmitSuccess={() => ConfigStore.set('partnershipAgreementPrompt', null)}
+            organizationSlug={config.customerDomain?.subdomain}
           />
         </Suspense>
       );