File tree Expand file tree Collapse file tree 3 files changed +16
-21
lines changed
docs/platforms/javascript/guides/react
src/components/onboarding Expand file tree Collapse file tree 3 files changed +16
-21
lines changed Original file line number Diff line number Diff line change @@ -175,22 +175,8 @@ body {
175175 counter-increment : onboarding-step;
176176}
177177
178- /* CSS Counters for Onboarding Steps */
179- .onboarding-steps {
180- counter-reset : onboarding-step;
181- }
182-
183- .onboarding-step {
184- counter-increment : onboarding-step;
185- }
186-
187178.onboarding-step .step-heading ::before ,
188179.onboarding-step h2 ::before {
189180 content : "Step " counter (onboarding-step) ": " ;
190181 font-weight : inherit;
191182}
192-
193- .onboarding-step .step-heading [data-step-prefix ]::before ,
194- .onboarding-step h2 [data-step-prefix ]::before {
195- content : attr (data-step-prefix) counter (onboarding-step) ": " ;
196- }
Original file line number Diff line number Diff line change @@ -11,7 +11,11 @@ categories:
1111
1212<PlatformContent includePath = " getting-started-prerequisites" />
1313
14- ## Step 1: Install
14+ <OnboardingSteps >
15+
16+ <OnboardingOption isStep >
17+
18+ ## Install
1519
1620Choose the features you want to configure, and this guide will show you how:
1721
@@ -37,7 +41,11 @@ yarn add @sentry/react
3741pnpm add @sentry/react
3842```
3943
40- ## Step 2: Configure
44+ </OnboardingOption >
45+
46+ <OnboardingOption isStep >
47+
48+ ## Configure
4149
4250### Initialize the Sentry SDK
4351
@@ -112,8 +120,9 @@ const container = document.getElementById(“app”);
112120const root = createRoot (container);
113121root .render (< App / > );
114122```
115-
116- ## Step 3: Capture React Errors
123+ </OnboardingOption >
124+ <OnboardingOption isStep >
125+ ## Capture React Errors
117126
118127To make sure Sentry captures all your app's errors, configure error handling based on your React version.
119128
@@ -159,7 +168,7 @@ import * as Sentry from "@sentry/react";
159168 [ here] ( features/error-boundary/#manually-capturing-errors ) .
160169</Alert >
161170
162- <OnboardingSteps >
171+ </ OnboardingOption >
163172
164173<OnboardingOption optionId = " performance" isStep >
165174## Set Up React Router
Original file line number Diff line number Diff line change @@ -151,9 +151,9 @@ export function OnboardingOption({
151151 hideForThisOption ?: boolean ;
152152 isStep ?: boolean ;
153153} ) {
154- if ( ! isStep || optionId !== 'all' ) {
154+ if ( optionId !== 'all' ) {
155155 // Allow not passing an optionId when isStep is true
156- validateOptionIds ( [ { id : optionId as OptionId } ] ) ;
156+ validateOptionIds ( [ { id : optionId } ] ) ;
157157 }
158158 const className = [ hideForThisOption ? 'hidden' : '' , isStep ? 'onboarding-step' : '' ]
159159 . filter ( Boolean )
You can’t perform that action at this time.
0 commit comments