mirror of
https://github.com/SteamDeckHomebrew/decky-plugin-template.git
synced 2026-05-16 21:50:07 +02:00
showModal->showContextMenu
This commit is contained in:
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>
|
||||
|
||||
Reference in New Issue
Block a user