Skip to content

Commit cfdc72c

Browse files
committed
fix more stuff
1 parent 28a681b commit cfdc72c

File tree

3 files changed

+16
-21
lines changed

3 files changed

+16
-21
lines changed

app/globals.css

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff 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-
}

docs/platforms/javascript/guides/react/index.mdx

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff 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

1620
Choose the features you want to configure, and this guide will show you how:
1721

@@ -37,7 +41,11 @@ yarn add @sentry/react
3741
pnpm 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”);
112120
const root = createRoot(container);
113121
root.render(<App />);
114122
```
115-
116-
## Step 3: Capture React Errors
123+
</OnboardingOption>
124+
<OnboardingOption isStep>
125+
## Capture React Errors
117126

118127
To 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

src/components/onboarding/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)