Browse Source

ref(onboarding): Streamline StepsParams interface name (#56243)

Streamline StepsParams interface name over all getting-started docs
platforms to avoid naming collisions as there is already a StepProps
interface in this context.

Relates to https://github.com/getsentry/sentry/pull/56239
ArthurKnaus 1 year ago
parent
commit
c0c31dc1ff

+ 2 - 2
static/app/gettingStartedDocs/android/android.tsx

@@ -9,7 +9,7 @@ import {StepType} from 'sentry/components/onboarding/gettingStartedDoc/step';
 import {ProductSolution} from 'sentry/components/onboarding/productSelection';
 import {t, tct} from 'sentry/locale';
 
-interface StepProps {
+interface StepsParams {
   dsn: string;
   hasPerformance: boolean;
   hasProfiling: boolean;
@@ -22,7 +22,7 @@ export const steps = ({
   sourcePackageRegistries,
   hasPerformance,
   hasProfiling,
-}: StepProps): LayoutProps['steps'] => [
+}: StepsParams): LayoutProps['steps'] => [
   {
     title: t('Auto-Install'),
     description: (

+ 2 - 2
static/app/gettingStartedDocs/apple/apple-ios.tsx

@@ -9,7 +9,7 @@ import {StepType} from 'sentry/components/onboarding/gettingStartedDoc/step';
 import {ProductSolution} from 'sentry/components/onboarding/productSelection';
 import {t, tct} from 'sentry/locale';
 
-interface StepProps {
+interface StepsParams {
   dsn: string;
   hasPerformance: boolean;
   hasProfiling: boolean;
@@ -21,7 +21,7 @@ export const steps = ({
   dsn,
   hasPerformance,
   hasProfiling,
-}: StepProps): LayoutProps['steps'] => [
+}: StepsParams): LayoutProps['steps'] => [
   {
     title: t('Auto-Install'),
     description: (

+ 2 - 2
static/app/gettingStartedDocs/java/java.tsx

@@ -7,7 +7,7 @@ import {ModuleProps} from 'sentry/components/onboarding/gettingStartedDoc/sdkDoc
 import {StepType} from 'sentry/components/onboarding/gettingStartedDoc/step';
 import {t, tct} from 'sentry/locale';
 
-interface StepProps {
+interface StepsParams {
   dsn: string;
   organizationSlug?: string;
   projectSlug?: string;
@@ -32,7 +32,7 @@ export const steps = ({
   sourcePackageRegistries,
   projectSlug,
   organizationSlug,
-}: StepProps): LayoutProps['steps'] => [
+}: StepsParams): LayoutProps['steps'] => [
   {
     type: StepType.INSTALL,
     description: t('Install the SDK via Gradle, Maven, or SBT:'),

+ 2 - 2
static/app/gettingStartedDocs/java/log4j2.tsx

@@ -7,7 +7,7 @@ import {ModuleProps} from 'sentry/components/onboarding/gettingStartedDoc/sdkDoc
 import {StepType} from 'sentry/components/onboarding/gettingStartedDoc/step';
 import {t, tct} from 'sentry/locale';
 
-interface StepProps {
+interface StepsParams {
   dsn: string;
   organizationSlug?: string;
   projectSlug?: string;
@@ -35,7 +35,7 @@ export const steps = ({
   sourcePackageRegistries,
   projectSlug,
   organizationSlug,
-}: StepProps): LayoutProps['steps'] => [
+}: StepsParams): LayoutProps['steps'] => [
   {
     type: StepType.INSTALL,
     description: t(

+ 2 - 2
static/app/gettingStartedDocs/java/logback.tsx

@@ -7,7 +7,7 @@ import {ModuleProps} from 'sentry/components/onboarding/gettingStartedDoc/sdkDoc
 import {StepType} from 'sentry/components/onboarding/gettingStartedDoc/step';
 import {t, tct} from 'sentry/locale';
 
-interface StepProps {
+interface StepsParams {
   dsn: string;
   organizationSlug?: string;
   projectSlug?: string;
@@ -33,7 +33,7 @@ export const steps = ({
   sourcePackageRegistries,
   projectSlug,
   organizationSlug,
-}: StepProps): LayoutProps['steps'] => [
+}: StepsParams): LayoutProps['steps'] => [
   {
     type: StepType.INSTALL,
     description: t(

+ 2 - 2
static/app/gettingStartedDocs/java/spring-boot.tsx

@@ -24,7 +24,7 @@ export enum PackageManager {
 
 type PlaformOptionKey = 'springBootVersion' | 'packageManager';
 
-interface StepProps {
+interface StepsParams {
   dsn: string;
   hasPerformance: boolean;
   organizationSlug?: string;
@@ -86,7 +86,7 @@ export const steps = ({
   springBootVersion,
   packageManager,
   hasPerformance,
-}: StepProps): LayoutProps['steps'] => [
+}: StepsParams): LayoutProps['steps'] => [
   {
     type: StepType.INSTALL,
     configurations: [

+ 2 - 2
static/app/gettingStartedDocs/java/spring.tsx

@@ -7,7 +7,7 @@ import {ModuleProps} from 'sentry/components/onboarding/gettingStartedDoc/sdkDoc
 import {StepType} from 'sentry/components/onboarding/gettingStartedDoc/step';
 import {t, tct} from 'sentry/locale';
 
-interface StepProps {
+interface StepsParams {
   dsn: string;
   organizationSlug?: string;
   projectSlug?: string;
@@ -33,7 +33,7 @@ export const steps = ({
   sourcePackageRegistries,
   projectSlug,
   organizationSlug,
-}: StepProps): LayoutProps['steps'] => [
+}: StepsParams): LayoutProps['steps'] => [
   {
     type: StepType.INSTALL,
     description: t(

+ 2 - 2
static/app/gettingStartedDocs/php/laravel.tsx

@@ -5,7 +5,7 @@ import {StepType} from 'sentry/components/onboarding/gettingStartedDoc/step';
 import {ProductSolution} from 'sentry/components/onboarding/productSelection';
 import {t, tct} from 'sentry/locale';
 
-interface StepProps {
+interface StepsParams {
   dsn: string;
   hasPerformance: boolean;
   hasProfiling: boolean;
@@ -32,7 +32,7 @@ export const steps = ({
   dsn,
   hasPerformance,
   hasProfiling,
-}: StepProps): LayoutProps['steps'] => [
+}: StepsParams): LayoutProps['steps'] => [
   {
     type: StepType.INSTALL,
     configurations: [

+ 2 - 2
static/app/gettingStartedDocs/php/php.tsx

@@ -5,7 +5,7 @@ import {StepType} from 'sentry/components/onboarding/gettingStartedDoc/step';
 import {ProductSolution} from 'sentry/components/onboarding/productSelection';
 import {t, tct} from 'sentry/locale';
 
-interface StepProps {
+interface StepsParams {
   dsn: string;
   hasPerformance: boolean;
   hasProfiling: boolean;
@@ -16,7 +16,7 @@ export const steps = ({
   dsn,
   hasPerformance,
   hasProfiling,
-}: StepProps): LayoutProps['steps'] => [
+}: StepsParams): LayoutProps['steps'] => [
   {
     type: StepType.INSTALL,
     configurations: [

+ 2 - 2
static/app/gettingStartedDocs/php/symfony.tsx

@@ -5,7 +5,7 @@ import {StepType} from 'sentry/components/onboarding/gettingStartedDoc/step';
 import {ProductSolution} from 'sentry/components/onboarding/productSelection';
 import {t, tct} from 'sentry/locale';
 
-interface StepProps {
+interface StepsParams {
   dsn: string;
   hasPerformance: boolean;
   hasProfiling: boolean;
@@ -25,7 +25,7 @@ export const steps = ({
   dsn,
   hasPerformance,
   hasProfiling,
-}: StepProps): LayoutProps['steps'] => [
+}: StepsParams): LayoutProps['steps'] => [
   {
     type: StepType.INSTALL,
     configurations: [