Skip to content

Commit 217194f

Browse files
committed
rename button
1 parent 5196c4a commit 217194f

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

packages/next/src/next-devtools/dev-overlay/components/errors/error-overlay-toolbar/copy-error-button.css

Whitespace-only changes.
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
import type { Meta, StoryObj } from '@storybook/react'
2-
import { CopyStackTraceButton } from './copy-stack-trace-button'
2+
import { CopyErrorButton } from './copy-error-button'
33
import { withShadowPortal } from '../../../storybook/with-shadow-portal'
44

5-
const meta: Meta<typeof CopyStackTraceButton> = {
6-
component: CopyStackTraceButton,
5+
const meta: Meta<typeof CopyErrorButton> = {
6+
component: CopyErrorButton,
77
parameters: {
88
layout: 'centered',
99
},
1010
decorators: [withShadowPortal],
1111
}
1212

1313
export default meta
14-
type Story = StoryObj<typeof CopyStackTraceButton>
14+
type Story = StoryObj<typeof CopyErrorButton>
1515

1616
export const WithStackTrace: Story = {
1717
args: {
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { CopyButton } from '../../copy-button'
22

3-
export function CopyStackTraceButton({
3+
export function CopyErrorButton({
44
error,
55
generateAIPrompt,
66
}: {
@@ -10,7 +10,7 @@ export function CopyStackTraceButton({
1010
return (
1111
<CopyButton
1212
data-nextjs-data-runtime-error-copy-stack
13-
className="copy-stack-trace-button"
13+
className="copy-error-button"
1414
actionLabel="Copy AI Debug Prompt"
1515
successLabel="AI Debug Prompt Copied"
1616
getContent={generateAIPrompt}

packages/next/src/next-devtools/dev-overlay/components/errors/error-overlay-toolbar/error-overlay-toolbar.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { DebugInfo } from '../../../../shared/types'
22
import { NodejsInspectorButton } from './nodejs-inspector-button'
3-
import { CopyStackTraceButton } from './copy-stack-trace-button'
3+
import { CopyErrorButton } from './copy-error-button'
44
import { DocsLinkButton } from './docs-link-button'
55

66
type ErrorOverlayToolbarProps = {
@@ -20,7 +20,7 @@ export function ErrorOverlayToolbar({
2020
<span className="error-overlay-toolbar">
2121
{/* TODO: Move the button inside and remove the feedback on the footer of the error overlay. */}
2222
{feedbackButton}
23-
<CopyStackTraceButton error={error} generateAIPrompt={generateAIPrompt} />
23+
<CopyErrorButton error={error} generateAIPrompt={generateAIPrompt} />
2424
<DocsLinkButton errorMessage={error.message} />
2525
<NodejsInspectorButton
2626
devtoolsFrontendUrl={debugInfo?.devtoolsFrontendUrl}
@@ -36,7 +36,7 @@ export const styles = `
3636
}
3737
3838
.nodejs-inspector-button,
39-
.copy-stack-trace-button,
39+
.copy-error-button,
4040
.docs-link-button {
4141
display: flex;
4242
justify-content: center;

0 commit comments

Comments
 (0)