Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
e2a3e5e1
Unverified
Commit
e2a3e5e1
authored
Feb 25, 2025
by
Jiwon Choi
Committed by
GitHub
Feb 25, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[dev-overlay] add title for the dev indicator menu items (#76510)
parent
0756f552
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
dev-tools-indicator.tsx
...onents/errors/dev-tools-indicator/dev-tools-indicator.tsx
+10
-1
No files found.
packages/next/src/client/components/react-dev-overlay/ui/components/errors/dev-tools-indicator/dev-tools-indicator.tsx
View file @
e2a3e5e1
...
@@ -344,6 +344,7 @@ function DevToolsPopover({
...
@@ -344,6 +344,7 @@ function DevToolsPopover({
<
div
className=
"dev-tools-indicator-inner"
>
<
div
className=
"dev-tools-indicator-inner"
>
{
issueCount
>
0
&&
(
{
issueCount
>
0
&&
(
<
MenuItem
<
MenuItem
title=
{
`${issueCount} ${issueCount === 1 ? 'issue' : 'issues'} found. Click to view details in the dev overlay.`
}
index=
{
0
}
index=
{
0
}
label=
"Issues"
label=
"Issues"
value=
{
<
IssueCount
>
{
issueCount
}
</
IssueCount
>
}
value=
{
<
IssueCount
>
{
issueCount
}
</
IssueCount
>
}
...
@@ -351,6 +352,7 @@ function DevToolsPopover({
...
@@ -351,6 +352,7 @@ function DevToolsPopover({
/>
/>
)
}
)
}
<
MenuItem
<
MenuItem
title=
{
`Current route is ${isStaticRoute ? 'static' : 'dynamic'}.`
}
label=
"Route"
label=
"Route"
index=
{
1
}
index=
{
1
}
value=
{
isStaticRoute
?
'Static'
:
'Dynamic'
}
value=
{
isStaticRoute
?
'Static'
:
'Dynamic'
}
...
@@ -358,10 +360,15 @@ function DevToolsPopover({
...
@@ -358,10 +360,15 @@ function DevToolsPopover({
data
-
nextjs
-
route
-
type=
{
isStaticRoute
?
'static'
:
'dynamic'
}
data
-
nextjs
-
route
-
type=
{
isStaticRoute
?
'static'
:
'dynamic'
}
/>
/>
{
isTurbopack
?
(
{
isTurbopack
?
(
<
MenuItem
label=
"Turbopack"
value=
"Enabled"
/>
<
MenuItem
title=
"Turbopack is enabled."
label=
"Turbopack"
value=
"Enabled"
/>
)
:
(
)
:
(
<
MenuItem
<
MenuItem
index=
{
2
}
index=
{
2
}
title=
"Learn about Turbopack and how to enable it in your application."
label=
"Try Turbopack"
label=
"Try Turbopack"
value=
{
<
ChevronRight
/>
}
value=
{
<
ChevronRight
/>
}
onClick=
{
()
=>
setIsTurbopackInfoOpen
(
true
)
}
onClick=
{
()
=>
setIsTurbopackInfoOpen
(
true
)
}
...
@@ -372,6 +379,7 @@ function DevToolsPopover({
...
@@ -372,6 +379,7 @@ function DevToolsPopover({
<
div
className=
"dev-tools-indicator-footer"
>
<
div
className=
"dev-tools-indicator-footer"
>
<
MenuItem
<
MenuItem
data
-
hide
-
dev
-
tools
data
-
hide
-
dev
-
tools
title=
"Hide Dev Tools for the current server session or a day."
label=
"Hide Dev Tools"
label=
"Hide Dev Tools"
value=
{
<
StopIcon
/>
}
value=
{
<
StopIcon
/>
}
onClick=
{
hide
}
onClick=
{
hide
}
...
@@ -407,6 +415,7 @@ function MenuItem({
...
@@ -407,6 +415,7 @@ function MenuItem({
...
props
...
props
}:
{
}:
{
index
?:
number
index
?:
number
title
?:
string
label
:
string
label
:
string
value
:
React
.
ReactNode
value
:
React
.
ReactNode
href
?:
string
href
?:
string
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment