Add selection and report bottom dock
Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import React, { useState } from "react";
|
||||
|
||||
export function UtilityMenus({ onPreferences, onShortcuts }: { onPreferences: () => void; onShortcuts: () => void }) {
|
||||
export function UtilityMenus({ onPreferences, onShortcuts, onToggleDock }: { onPreferences: () => void; onShortcuts: () => void; onToggleDock: () => void }) {
|
||||
const [open, setOpen] = useState("");
|
||||
return <div className="utility-menus">
|
||||
<style>{`
|
||||
@@ -21,6 +21,13 @@ export function UtilityMenus({ onPreferences, onShortcuts }: { onPreferences: ()
|
||||
<span>Customize / Units calculator: P3</span>
|
||||
</div>}
|
||||
</button>
|
||||
<button type="button" aria-expanded={open === "Windows"}
|
||||
onClick={() => setOpen(previous => previous === "Windows" ? "" : "Windows")}>Windows
|
||||
{open === "Windows" && <div className="dropdown" role="menu" aria-label="Windows">
|
||||
<button type="button" onClick={() => { setOpen(""); onToggleDock(); }}>Selection / Report views</button>
|
||||
<span>Tile / floating docks: P3</span>
|
||||
</div>}
|
||||
</button>
|
||||
<button type="button" aria-expanded={open === "Help"}
|
||||
onClick={() => setOpen(previous => previous === "Help" ? "" : "Help")}>Help
|
||||
{open === "Help" && <div className="dropdown" role="menu" aria-label="Help">
|
||||
|
||||
Reference in New Issue
Block a user