Skip to content

Commit 7045e65

Browse files
committed
use corners type
1 parent 3a4800b commit 7045e65

File tree

1 file changed

+2
-6
lines changed
  • packages/next/src/next-devtools/dev-overlay/components/devtools-panel/devtools-panel-tab

1 file changed

+2
-6
lines changed

packages/next/src/next-devtools/dev-overlay/components/devtools-panel/devtools-panel-tab/settings-tab.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
import type {
2-
OverlayDispatch,
3-
OverlayState,
4-
DevToolsIndicatorPosition,
5-
} from '../../../shared'
1+
import type { OverlayDispatch, OverlayState, Corners } from '../../../shared'
62

73
import { useTheme } from '../hooks/use-theme'
84
import { Select } from '../../select/select'
@@ -70,7 +66,7 @@ export function SettingsTab({
7066
function handlePositionChange(e: React.ChangeEvent<HTMLSelectElement>) {
7167
dispatch({
7268
type: ACTION_DEVTOOLS_INDICATOR_POSITION,
73-
indicatorPosition: e.target.value as DevToolsIndicatorPosition,
69+
indicatorPosition: e.target.value as Corners,
7470
})
7571
localStorage.setItem(STORAGE_KEY_POSITION, e.target.value)
7672
}

0 commit comments

Comments
 (0)