From 8b0c404b1f791878c86e9be70d5484c06ed8a51b Mon Sep 17 00:00:00 2001 From: Adam McQuilkin <46639306+ajmcquilkin@users.noreply.github.com> Date: Wed, 19 Oct 2022 19:49:03 -0400 Subject: [PATCH] Added WIP tag and default alert action to unimplemented functionality (#50) --- src/components/CommandPalette/Index.tsx | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/components/CommandPalette/Index.tsx b/src/components/CommandPalette/Index.tsx index 59de582d..a11b8ea4 100644 --- a/src/components/CommandPalette/Index.tsx +++ b/src/components/CommandPalette/Index.tsx @@ -57,7 +57,7 @@ export interface Group { export interface Command { name: string; icon: (props: React.ComponentProps<"svg">) => JSX.Element; - action?: () => void; + action: () => void; } export const CommandPalette = (): JSX.Element => { @@ -135,8 +135,11 @@ export const CommandPalette = (): JSX.Element => { icon: DevicePhoneMobileIcon, commands: [ { - name: "Switch Node", + name: "[WIP] Switch Node", icon: ArrowsRightLeftIcon, + action() { + alert('This feature is not implemented'); + }, }, { name: "Connect New Node", @@ -194,8 +197,11 @@ export const CommandPalette = (): JSX.Element => { }, }, { - name: "Clear Messages", + name: "[WIP] Clear Messages", icon: ArchiveBoxXMarkIcon, + action() { + alert('This feature is not implemented'); + }, }, ], }, @@ -204,8 +210,11 @@ export const CommandPalette = (): JSX.Element => { icon: WindowIcon, commands: [ { - name: "Toggle Dark Mode", + name: "[WIP] Toggle Dark Mode", icon: MoonIcon, + action() { + alert('This feature is not implemented'); + }, }, ], },