Skip to content

Commit

Permalink
use chevron for Try Turbopack section
Browse files Browse the repository at this point in the history
  • Loading branch information
ztanner committed Feb 19, 2025
1 parent 34e241c commit 1c7566a
Showing 1 changed file with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ function DevToolsPopover({
<MenuItem
index={1}
label="Try Turbopack"
value={isTurbopack ? 'Enabled' : 'Disabled'}
value={<ChevronRight />}
onClick={() => setIsTurbopackInfoOpen(true)}
/>
)}
Expand All @@ -329,6 +329,19 @@ function DevToolsPopover({
)
}

function ChevronRight() {
return (
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="none">
<path
fill="#666"
fillRule="evenodd"
d="m7.5 3.94.53.53 4.824 4.823a1 1 0 0 1 0 1.414L8.03 15.53l-.53.53L6.44 15l.53-.53L11.44 10 6.97 5.53 6.44 5 7.5 3.94Z"
clipRule="evenodd"
/>
</svg>
)
}

function MenuItem({
index,
label,
Expand Down

0 comments on commit 1c7566a

Please sign in to comment.