Skip to content

Commit 8cba962

Browse files
committed
ACTION_DEV_TOOLS_PANEL_TOGGLE
1 parent 6977cbe commit 8cba962

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/next/src/next-devtools/dev-overlay/components/devtools-indicator/devtools-indicator.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
MENU_DURATION_MS,
1111
} from '../errors/dev-tools-indicator/utils'
1212
import {
13-
ACTION_DEV_TOOLS_PANEL_TOGGLE,
13+
ACTION_DEVTOOLS_PANEL_TOGGLE,
1414
ACTION_ERROR_OVERLAY_TOGGLE,
1515
STORAGE_KEY_POSITION,
1616
} from '../../shared'
@@ -42,7 +42,7 @@ export function DevToolsIndicator({
4242
}
4343

4444
const toggleDevToolsPanel = () => {
45-
dispatch({ type: ACTION_DEV_TOOLS_PANEL_TOGGLE })
45+
dispatch({ type: ACTION_DEVTOOLS_PANEL_TOGGLE })
4646
}
4747

4848
return (

packages/next/src/next-devtools/dev-overlay/shared.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export const ACTION_BUILDING_INDICATOR_SHOW = 'building-indicator-show'
5050
export const ACTION_BUILDING_INDICATOR_HIDE = 'building-indicator-hide'
5151
export const ACTION_RENDERING_INDICATOR_SHOW = 'rendering-indicator-show'
5252
export const ACTION_RENDERING_INDICATOR_HIDE = 'rendering-indicator-hide'
53-
export const ACTION_DEV_TOOLS_PANEL_TOGGLE = 'dev-tools-panel-toggle'
53+
export const ACTION_DEVTOOLS_PANEL_TOGGLE = 'dev-tools-panel-toggle'
5454

5555
export const STORAGE_KEY_THEME = '__nextjs-dev-tools-theme'
5656
export const STORAGE_KEY_POSITION = '__nextjs-dev-tools-position'
@@ -124,7 +124,7 @@ export interface RenderingIndicatorHideAction {
124124
}
125125

126126
export interface DevToolsPanelToggleAction {
127-
type: typeof ACTION_DEV_TOOLS_PANEL_TOGGLE
127+
type: typeof ACTION_DEVTOOLS_PANEL_TOGGLE
128128
}
129129

130130
export type DispatcherEvent =
@@ -347,7 +347,7 @@ export function useErrorOverlayReducer(
347347
case ACTION_RENDERING_INDICATOR_HIDE: {
348348
return { ...state, renderingIndicator: false }
349349
}
350-
case ACTION_DEV_TOOLS_PANEL_TOGGLE: {
350+
case ACTION_DEVTOOLS_PANEL_TOGGLE: {
351351
return { ...state, isDevToolsPanelOpen: !state.isDevToolsPanelOpen }
352352
}
353353
default: {

0 commit comments

Comments
 (0)