showModal->showContextMenu
This commit is contained in:
parent
d8870f2062
commit
26dc961f58
1 changed files with 2 additions and 2 deletions
4
src/index.tsx
Normal file → Executable file
4
src/index.tsx
Normal file → Executable file
|
@ -8,7 +8,7 @@ import {
|
|||
PanelSectionRow,
|
||||
Router,
|
||||
ServerAPI,
|
||||
showModal,
|
||||
showContextMenu,
|
||||
staticClasses,
|
||||
} from "decky-frontend-lib";
|
||||
import { VFC } from "react";
|
||||
|
@ -43,7 +43,7 @@ const Content: VFC<{ serverAPI: ServerAPI }> = ({}) => {
|
|||
<ButtonItem
|
||||
layout="below"
|
||||
onClick={(e) =>
|
||||
showModal(
|
||||
showContextMenu(
|
||||
<Menu label="Menu" cancelText="CAAAANCEL" onCancel={() => {}}>
|
||||
<MenuItem onSelected={() => {}}>Item #1</MenuItem>
|
||||
<MenuItem onSelected={() => {}}>Item #2</MenuItem>
|
||||
|
|
Loading…
Reference in a new issue