From c96b5ec4de10b980b836b3da6be02d1276b963f3 Mon Sep 17 00:00:00 2001 From: Johannes Kirschbauer Date: Mon, 26 Aug 2024 16:28:57 +0200 Subject: [PATCH] UI: add quicklink for machine details --- .../app/src/components/MachineListItem.tsx | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/pkgs/webview-ui/app/src/components/MachineListItem.tsx b/pkgs/webview-ui/app/src/components/MachineListItem.tsx index 6a41b23b6..17a833b25 100644 --- a/pkgs/webview-ui/app/src/components/MachineListItem.tsx +++ b/pkgs/webview-ui/app/src/components/MachineListItem.tsx @@ -3,7 +3,7 @@ import { callApi, SuccessData } from "../api"; import { Menu } from "./Menu"; import { activeURI } from "../App"; import toast from "solid-toast"; -import { useNavigate } from "@solidjs/router"; +import { A, useNavigate } from "@solidjs/router"; type MachineDetails = SuccessData<"list_inventory_machines">["data"][string]; @@ -116,14 +116,16 @@ export const MachineListItem = (props: MachineListItemProps) => {
-

- {name} -

+ +

+ {name} +

+
{(d) => d()?.description}