From 17ebef6c589a7a87ce9a6375ee059aa41c908836 Mon Sep 17 00:00:00 2001 From: "Thomas \"ajnart\" Camlong" Date: Sat, 30 Apr 2022 21:37:36 +0200 Subject: [PATCH] Edit AppShelfMenu Preparing to add an Edit button --- components/AppShelf/AppShelfMenu.tsx | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/components/AppShelf/AppShelfMenu.tsx b/components/AppShelf/AppShelfMenu.tsx index 67deb3537..a1846397d 100644 --- a/components/AppShelf/AppShelfMenu.tsx +++ b/components/AppShelf/AppShelfMenu.tsx @@ -1,13 +1,25 @@ import { Menu, Text } from '@mantine/core'; import { showNotification } from '@mantine/notifications'; -import { Check, Trash } from 'tabler-icons-react'; +import { Check, Edit, Trash } from 'tabler-icons-react'; export default function AppShelfMenu(props: any) { const { name, removeitem: removeItem } = props; return ( Settings - + } + onClick={() => { + showNotification({ + color: 'red', + title: Feature not yet implemented, + message: `${name} could not be edited`, + }); + }} + > + Rename + Danger zone