Skip to content

Commit 504fa32

Browse files
authored
[devtools] Cleanup folder structure (vercel#82012)
Some files did not fit into the folder structure established in vercel#80281 The structure is both valueable to statically analyze that boundaries aren't violated and for contributors to orient.
1 parent 4362da4 commit 504fa32

File tree

9 files changed

+4
-4
lines changed

9 files changed

+4
-4
lines changed

packages/next/src/next-devtools/dev-overlay/components/overview/segment-explorer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
} from '../../segment-explorer-trie'
66
import { cx } from '../../utils/cx'
77
import { SegmentBoundaryTrigger } from './segment-boundary-trigger'
8-
import { Tooltip } from '../../../components/tooltip'
8+
import { Tooltip } from '../tooltip/tooltip'
99
import { useCallback, useMemo } from 'react'
1010
import {
1111
BUILTIN_PREFIX,

packages/next/src/next-devtools/dev-overlay/components/overview/segment-suggestion.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Tooltip } from '../../../components/tooltip'
1+
import { Tooltip } from '../tooltip/tooltip'
22
import { InfoIcon } from './segment-explorer'
33

44
export function SegmentSuggestion({

packages/next/src/next-devtools/components/tooltip.css renamed to packages/next/src/next-devtools/dev-overlay/components/tooltip/tooltip.css

File renamed without changes.

packages/next/src/next-devtools/components/tooltip.stories.tsx renamed to packages/next/src/next-devtools/dev-overlay/components/tooltip/tooltip.stories.tsx

File renamed without changes.

packages/next/src/next-devtools/components/tooltip.tsx renamed to packages/next/src/next-devtools/dev-overlay/components/tooltip/tooltip.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { forwardRef, useRef, useState } from 'react'
22
import { Tooltip as BaseTooltip } from '@base-ui-components/react/tooltip'
3-
import { cx } from '../dev-overlay/utils/cx'
3+
import { cx } from '../../utils/cx'
44
import './tooltip.css'
55

66
type TooltipDirection = 'top' | 'bottom' | 'left' | 'right'
File renamed without changes.
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import './global.css'
1+
import './dev-overlay/global.css'
22
import './dev-overlay/components/toast/style.css'
33
export * from './dev-overlay.browser'

packages/next/src/next-devtools/types.ts

Whitespace-only changes.

0 commit comments

Comments
 (0)